Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying coordinates on design drawings

Status
Not open for further replies.

JeffMorris

Civil/Environmental
Joined
May 9, 2002
Messages
4
Location
GB
Can anyone tell me how other than using the dimordinate command (seperately for both the x and y refs), how I get the coordinates of a point to be displayed on the screen to be subsequently plotted in 2002LT?

I can't believe that I am the only engineer that needs to take off and display coordinates from design drawings?

Thanks

Jeff
 
Dear JeffMorris,

Below you will find an autolisp routine which adds a command named "XYZ" to your drawins session. The XYZ command prompts you to pick a point and creates a text containing the picked coordinate at the same location.
Keep in mind that:
1- Text height for the active text style must be set to 0.
2- Set the UCS origin to desired location to get desired coordinates.
3- press ENTER to finish the command.


(defun c:xyz(/ tid)
(setq tid t)
(while tid
(setq tid (getpoint "\n Pick a point:"))
(if (/= tid nil)
(command "text" tid "" ""
(strcat (rtos (car tid))
","
(rtos (cadr tid))
","
(rtos (caddr tid))
)
""
)
)
)
(princ)
)


I do not know you can use lisp routines in AutoCAD LT or not.

:)
Farzad
 
Is it possible to use different text size somehow ? :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top