Hello I can finally slow down a bit,just back from my holiday near Milan. Im trying work out how to insert an XREF to a number of drawings via lisp.What I have come up with so far will
set my XREF layer
bring me to model space
start up the xref dialogue box (I cant get filedia to suppress this box)
Heres my code so far:
(defun c:cxr ()
(command "tilemode" "1")
(command "-layer" "new" "TDP-XREF" "set" "TDP-XREF" "colour" "8" "" "")
(command "EXTERNALREFERENCES")
(command "_XATTACH" pause "" "" "")
(princ)
)
The pause part and extra "" arent doing what I want them to.What I want is to be able to suppress the XREF insert dialogue box and specify the XREF to be inserted at 0,0 scale 1 0 degrees rotation etc.I basically need to replace an XREF with another but the XREF being replaced isnt the same in each individual drawing.
Thanks Kerry Just added code tags to make it easier to read - jonesy