You can retrieve attributes from many Datakit objects, any class inheriting from Dtk_Entity or Dtk_DocElement being eligible.
This includes various data :
General : name, color, visibility, layer informations Metadata : PDM file properties, generic custom properties (named values) Rendering : Surface lighting and texturing information. Material : Definition of physical properties of used material (name, density, conductivity, strength...)Common entities on which attributes can be found are :
Dtk_Component Dtk_Node Dtk_Body Dtk_Face, Dtk_Edge, Dtk_Vertex Dtk_Surface, Dtk_Curve, etc. Dtk_Info of the entity. See Dtk_DocElement::GetInfos() and Dtk_Entity::get_info().Dtk_Node.
Calling Dtk_Info::GetLayer() provides a layer identifier, of which the entity belong.
For format allowing an entity to be listed in multiples layers, Dtk_Info::GetlayerList() allow to retrieve the list of layers the entity belong to.
If the said entity appears in only one layer, this call is equivalent to Dtk_Info::GetLayer().
In case the format allows more information relative to layers, such as name assignment or layer filtering, Dtk_LayerInfosSet allows to retrieve those information.
They live in the context of a Dtk_Component.
See Dtk_LayerFilterInfos and Dtk_LayerInfosSet interface and detailed description for more information.