How do I run a macro from inside a lisp routine?

How do I run a macro from inside a lisp routine?

Anonymous
Not applicable
302 Views
1 Reply
Message 1 of 2

How do I run a macro from inside a lisp routine?

Anonymous
Not applicable
I know how to run a macro from the command line and attach it to a menu or toolbar, but how can I run it inside a lisp routine so that it is part of an overall process held in a lisp?

I know you run them by doing -vbarun project.macro

But I am not sure how to call it in a lisp.

Thanks.
0 Likes
303 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Given: and (setq Acad-Object (vlax-get-Acad-Object) ActiveDocument (vlax-get Acad-Object 'ActiveDocument) ) I use one of these two: (vla-SendCommand ActiveDocument "-vbarun .dvb!.Module1. " ) or (vla-RunMacro Acad-Object ".dvb!Module1.") -- James Allen, EIT Malicoat-Winslow Engineers, P.C. Columbia, MO "ajtruckle" wrote in message news:28099815.1109848574632.JavaMail.jive@jiveforum1.autodesk.com... > I know how to run a macro from the command line and attach it to a menu or toolbar, but how can I run it inside a lisp routine so that it is part of an overall process held in a lisp? > > I know you run them by doing -vbarun project.macro > > But I am not sure how to call it in a lisp. > > Thanks.
0 Likes