.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get boundaries of drawing? Drawing extents.

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
327 Views, 2 Replies

How to get boundaries of drawing? Drawing extents.

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?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous


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?
Message 3 of 3
Anonymous
in reply to: Anonymous

Thank you, that seemed to work.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost