Page 1 of 1

Layer width and height

Posted: 12 Jun 2018, 17:39
by Ljurka
Hello!
Is there a chance to get the height and width or something like that inside the area of the layer?

Re: Layer width and height

Posted: 13 Jun 2018, 20:25
by support
Hello,

The LAYER object is non-visible that means it doesn't have a width and height. If you need to get the area occupied by the visible CAD objects (entities) which belong to a certain layer, it may be possible.

Mikhail

Re: Layer width and height

Posted: 14 Jun 2018, 14:51
by Ljurka
"need to get the area occupied by the visible CAD objects (entities) which belong to a certain layer"

Yes, that what I need. How to archive this?

Re: Layer width and height

Posted: 15 Jun 2018, 21:35
by support
Hello,

It can be achieved by iterating through the entities located on a certain layout (e.g. Model, Layout1, Layout2, etc.) and finding the minimum (bottom, left) and maximum (top, right) extent values for all the entities which belong to a certain layer. Please ensure that the layer entities in your drawing file are located within the same layout, otherwise, this task doesn't make sense.

Mikhail