You can retrieve attributes for a wide variety of Datakit classes, any class inheriting from Dtk_Entity or Dtk_DocElement being eligible.
Common entities on which attributes can be found are :
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.