How to get boundaries of drawing? Drawing extents.

How to get boundaries of drawing? Drawing extents.

Anonymous
Not applicable
456 Views
2 Replies
Message 1 of 3

How to get boundaries of drawing? Drawing extents.

Anonymous
Not applicable
Hi,
I need to measure how large my drawing is, is this possible? When i do zoom extents or plot extents, the size of that area is what i need.
Also, can i get the size of a block somehow?
0 Likes
457 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

the simplest way would be to get system variable
EXTMAX and EXTMIN

 


size=2>Application.GetSystemVariable("EXTMAX"["EXTMIN"])

 

For the size of blockreference (or any
entity),

 

Entity.GeomExtents (2005/6)

Entity.GeometricExtents (2007 on)


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi,
I need to measure how large my drawing is, is this possible? When i do zoom
extents or plot extents, the size of that area is what i need. Also, can i get
the size of a block somehow?
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank you, that seemed to work.
0 Likes