I have done simple lisp before but I think I stepped in over my head with this one.
I want to change to correct layer, attach xref, change back to previous layer then zoom extents. I got the following code:
; This function attaches xref on correct layer
( DEFUN C:XRA ()
;(SETQ CURRENTLAYER (GETVAR "CLAYER"))
(SETVAR "CLAYER" "g-anno-refr")
;(SETVAR "CLAYER" CURRENTLAYER)
setting the layer is not setup to function because it wasn't working.
I had some other code in but it wasn't working at all, so I removed it.
Any help greatly appreciated.
AutoCad Civil 3D 2011