Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Farthest X and Y coord in a drawing

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
popescu.gabriel.catalin95
564 Views, 7 Replies

Farthest X and Y coord in a drawing

How would one find the farthest X and Y coord of a drawing?

Assuming I have a line placed from (0, 0) with a lenght of 200(units) the output will be (0, 200). If I place another line from (500, 500) with a lenght of 200, now if I run the command the output will be (500, 700) .

Screenshot maybe explains it better.

7 REPLIES 7
Message 2 of 8

Hi and Welcome to AutoCAD Forum ,

Still your issue need more clarification to catch well the point that you asked for .. But as much as i understand your need you can use ID (Command) to display the UCS coordinate values of a specified location . also by COORDS (System Variable) to control whether the cursor position on the status bar is updated continuously or at specific times only. It also controls the format in which the coordinates are displayed. >> Click << 

Imad Habash

EESignature

Message 3 of 8

Type in the command line 

(getvar "extmax")

and 

(getvar "extmin") 

to get the coordinates of the smallest rectangle around all your drawing objects (also on hidden and frozen layers).  

 

Or draw such a rectangle this way: 

Command: Rectang

Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: (getvar "extmin")
(112.187 173.172 0.0)

Specify other corner point or [Area/Dimensions/Rotation]: (getvar "extmax")
(553.477 542.498 0.0)

 

 

 

 

 

If my reply solves your problem, click the "accept as solution" button. This can help others find solutions faster

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 4 of 8

Solution provided by  j.palmeL29YX works great!

Thank you very much!

Message 5 of 8

If I understand your question correctly the answer depends on how much precision you want for the line length. AutoCAD uses a floating point database of about 15 significant figures.  Therefore, if you want a precision of 0.0001 then the maximum coordinate would be about ten billion, i.e., 10,000,000,000.0000 (15 digits).  If you can settle on a precision of 0.01 then the max is one trillion!

lee.minardi
Message 6 of 8

You should do a ZOOM All or a ZOOM Extents before getting the values of the EXTMIN & EXTMAX System Variables.  Those adjust outward whenever you add objects beyond the former extents, but they don't adjust inward when you do something that reduces the extents, until one of those types of Zoom [read about it in Help].  So if something has been Moved or Erased that shrinks the extents in any direction, and you don't Zoom A/E before doing your thing, you will get an incorrect result.

Kent Cooper, AIA
Message 7 of 8
j.palmeL29YX
in reply to: Kent1Cooper

Thanks for this important addition. 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 8 of 8

I figured out somethig was wrong when adding elements... I solve it by swaping layers and regenerating model, but your solution is interesting as well, and it works. 

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report