Below is a macro I have as a toolbar button for opening xrefs. I want to set this up so as a machine with sdi (single document interface) is turn ON.
^C^C(setq dwgn(getvar "dwgname"));(setq dwgp(getvar "dwgprefix"));oxref;
I have a macro below
^c^crevert;
This macro is for reverting back to the original “sheet” drawing.
I want the the “oxref” macro to call and retain the two following variable “dwgname” and “dwgprefix”, because revert is a lisp that calls on those two to open the original “sheet” drawing. Below is revert.lsp
(defun c:revert()
(command "fileopen" dwgname dwgprefix)
(princ)
)
Any suggestions would be greatly appreciated.
Regards
Diarmuid