Layer width and height
Moderators: SDS, support, admin
Layer width and height
Hello!
Is there a chance to get the height and width or something like that inside the area of the layer?
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
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
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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Layer width and height
"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?
Yes, that what I need. How to archive this?
Re: Layer width and height
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
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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support