# How to get the Layer a element belongs to in DCTL

**URL:** <https://forums.visual-paradigm.com/t/how-to-get-the-layer-a-element-belongs-to-in-dctl/16102>\
**Category:** How To\
**Tags:** generate-document\
**Created:** [May 27, 2020, 10:38am UTC](https://forums.visual-paradigm.com/t/how-to-get-the-layer-a-element-belongs-to-in-dctl/16102 "2020-05-27T10:38:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lalitnagpal](https://avatars.discourse-cdn.com/v2/letter/l/c6cbf5/32.png) [@lalitnagpal](https://forums.visual-paradigm.com/u/lalitnagpal)\
**Post date:** [May 27, 2020, 10:38am UTC](https://forums.visual-paradigm.com/t/how-to-get-the-layer-a-element-belongs-to-in-dctl/16102/1 "2020-05-27T10:38:34Z")

</div>

How can I get the layers that a diagram element belongs to in DCTL XML code. We can get the Diagram a component belongs to like this ( for example for all ArchiMateAssessment ).

```
<IterationBlock modelTypes="ArchiMateAssessment">
   <ForEachOwnerDiagram diagramType="ArchiMateDiagram">
      <Property property="name"/>
   </ForEachOwnerDiagram>
</IterationBlock>

```

My requirement is to get the diagram name and the layer/s in the diagram that the element belongs to.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![peter.wong](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/peter.wong/32/3250_2.png) [@peter.wong](https://forums.visual-paradigm.com/u/peter.wong)\
**Post date:** [May 28, 2020, 2:29am UTC](https://forums.visual-paradigm.com/t/how-to-get-the-layer-a-element-belongs-to-in-dctl/16102/2 "2020-05-28T02:29:51Z")

</div>

Sorry, it is not supported.

* * *

FYI:  
In DCTL, we support `layerFilters` to include/exclude the layers , as following:

 ![DocComposerLayerFilters](https://forums.visual-paradigm.com/uploads/default/original/2X/9/922324136b38f005e8e6f298ee0234b8582ed687.png)
