Hi folks.
I have a LISP routine that inserts a block and populates its attributes, however it's only populating the attributes that are in the visibility state that is current when the block is inserted. Heres the code:
(defun c:workpoint (/ CRDX CRDY CRDXY ADT P)
(setq atd (getvar 'ATTDIA))
(setvar 'ATTDIA 0)
(while (setq p (getpoint "\n Specify point :"))
(setq CRDX (rtos (car p) 4 0))
(setq CRDY (rtos (cadr p) 4 0))
(setq CRDXY (strcat "(" CRDX ", " CRDY ")"))
(command "_.-insert"
"SW Coordinates Tag r00"
"_none"
p
""
""
""
CRDXY
CRDX
CRDY
)
)
(setvar 'ATTDIA atd)
)
The variables CRDX and CRDY are correct but the attributes they populate are in a visibility state that is OFF so... it ain't working.
Anyone know how to assign values to attributes in the "non current" visibility state?
Any help is appreciated, as always.