Message 1 of 4
Convert Text into Field

Not applicable
09-12-2017
12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This Lisp is used to Lable the coordinate with Leader.
I want this Lable as a field "Not text",
Please Edit it for me.
;cord-ldr.lsp
; x,y Coordinates on Leader Lines
(defun C:CR (/ PNT1 P1X P1Y STDY DY COORD PTXT)
(setq PNT1 (getpoint
"\nPick coordinate point: "))
(setq P1X (car pnt1)) ;x coord
(setq P1Y (cadr pnt1)) ;y coord
(setq STDX (rtos P1X 2 4))
(setq STDY (rtos P1Y 2 4))
(setq COORD (strcat "E" STDX)
COORD1(strcat "N" STDY))
(setq PTXT (getpoint PNT1
"\nPick text location: "))
(command "LEADER" PNT1 PTXT ""
COORD COORD1 "" "")
(princ)) ; end
(ALERT "IT WILL PRINT THE X,Y CO-ORDINATES OF A POINT..., C:CR")