Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting the x,y coordinates of the four corners of a 2D drawing

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
665 Views, 3 Replies

Getting the x,y coordinates of the four corners of a 2D drawing

Let us say I create a drawing.

 

How do I get the coordinates of the four corners (the extents) (the coordinates from a zoom extents command) ?

3 REPLIES 3
Message 2 of 4
skintsubby
in reply to: Anonymous

Check out the EXTMIN  and  EXTMAX variables.

 

 

Message 3 of 4
pbejse
in reply to: Anonymous

(getvar "EXTMIN")

(getvar "EXTMAX")

 

then do the math,

 

If you need help with this just holler

 

Message 4 of 4
Anonymous
in reply to: pbejse

That was easier than I thought it might be 🙂

 

Thanks.

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

Post to forums  

Autodesk Design & Make Report

”Boost