Author Topic: macro button help  (Read 1521 times)

0 Members and 1 Guest are viewing this topic.

diarmuid

  • Bull Frog
  • Posts: 417
macro button help
« on: March 16, 2005, 05:16:22 AM »
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
If you want to win something run the 100m, if you want to experience something run a marathon