PhillySurveyor
Civil/Environmental
- Aug 6, 2006
- 3
My first post!
I found this code on this forum posted by IFRs (Petroleum)and made a couple changes based on what I was able to figure on my own.
(DEFUN CTT (/ osm p1 x y s p2) ; ID a point, place coordinates text
(graphscr)
(setq osm (getvar "osmode"))
(command "osmode" 53)
(setq p1 (getpoint "\nSNAP to point to be ID'd: ")
x (car p1)
y (cadr p1)
s (strcat "N:" (rtos y)"'" " E:" (rtos x)"'" )
)
(command "osmode" 0)
(setq p2 (getpoint p1 "\nPick point for end of Leader: "))
(COMMAND "DIM1" "LE" p1 p2 "" s)
(command "osmode" osm)
(princ)
)
I would like to see the N coordinate on one line and the E coordinate below it in the graphic. Can someone show me how to accomplish this? Thanks in advance.
I found this code on this forum posted by IFRs (Petroleum)and made a couple changes based on what I was able to figure on my own.
(DEFUN CTT (/ osm p1 x y s p2) ; ID a point, place coordinates text
(graphscr)
(setq osm (getvar "osmode"))
(command "osmode" 53)
(setq p1 (getpoint "\nSNAP to point to be ID'd: ")
x (car p1)
y (cadr p1)
s (strcat "N:" (rtos y)"'" " E:" (rtos x)"'" )
)
(command "osmode" 0)
(setq p2 (getpoint p1 "\nPick point for end of Leader: "))
(COMMAND "DIM1" "LE" p1 p2 "" s)
(command "osmode" osm)
(princ)
)
I would like to see the N coordinate on one line and the E coordinate below it in the graphic. Can someone show me how to accomplish this? Thanks in advance.