DATAKIT API  V2025.1
How to use Construction Tree

A Dtk_Node is a tree data structure representing the construction tree of a part. Each Dtk_Node has a type and children and several attributes in Dtk_Info that you can get with info() method. There are several different types:

  • Virtual Node contains only children.
  • Body Node represents Brep and Wireframe.
  • Mesh Node represents Tesselated Geometry.
  • Drawing Node represents a 2D drawing.
  • AxisPlacement Node represents an additional orthonormal basis.
  • LayerInfosSet Node represents layer information and layer filters.
  • ColorInfosSet Node represents color palette information.
  • MetaData Node represents Additional Information or Parameter.
  • Feature Node represents feature information.
  • Camera Node represents camera.
  • ModelDisplay Node represents a 'snapshot' of the scene display.
  • Fdt Node represents basic FDT/GDT entities.

Following the type of node, you have to call the corresponding method (GetDtk_BodyPtr, GetDtk_MeshPtr,...) to get the full information.
The full data is read in the input file only at this time to limit memory consumption. Any Dtk_Node can also have a corresponding Dtk_feat which can be construction or manufacturing feature.



See More Details for each type of node: