I am currently using the following Lisp code to show the X and Y coordinates from the origin:
(defun c:xy(/ pt pt1 pt2 x y xy)
(setq pt (getpoint "\nPoint : "))
(setq x(rtos(car pt)))
(setq y(rtos(cadr pt)))
; x- leader horizontaal
(setq pt1 (getpoint pt "\nHORIZONTAL: "))
(command "leader" pt pt1 "" x "" )
; y- leader verticaal
(setq pt2 (getpoint pt "\nVERTICAL: "))
(command "leader" pt pt2 "" y "" ) )
(princ)
The script currently shows the Y coordinate (6050.00) as follows:
Though I'd like to have the Y coordinate drawn vertically like this:
Is there any possibility to achieve this through Lisp? If so, what changes would I have to make?