basepointdesignz
Programmer
Hi peeps,
Does anyone know how to run a VBA macro from start-up? The help menu says about writing it to the Acad.lsp file but I can't find it, and if it doesn't exist, I've never used lisp before to be able to create one.
Here's exactly what the help menu suggests:
You can automatically run any macro in the acad.dvb file by calling it with the command line version of VBARUN from an AutoCAD startup facility like acad.lsp. For example, to automatically run the macro named drawline, first save the drawline macro in the acad.dvb file. Next, invoke notepad.exe and create (or append to) acad.lsp the following lines:
So if I do this and save it as acad.lsp, where do I need to save it to?
I've already made a 'call' from the acad.dvb file but I need to initialise the acad.lsp file to run the program/macro when AutoCAD starts up..
Thanks in advance..
Renegade..
Does anyone know how to run a VBA macro from start-up? The help menu says about writing it to the Acad.lsp file but I can't find it, and if it doesn't exist, I've never used lisp before to be able to create one.
Here's exactly what the help menu suggests:
You can automatically run any macro in the acad.dvb file by calling it with the command line version of VBARUN from an AutoCAD startup facility like acad.lsp. For example, to automatically run the macro named drawline, first save the drawline macro in the acad.dvb file. Next, invoke notepad.exe and create (or append to) acad.lsp the following lines:
Code:
(defun S::STARTUP()
(command "_-vbarun" "drawline")
)
So if I do this and save it as acad.lsp, where do I need to save it to?
I've already made a 'call' from the acad.dvb file but I need to initialise the acad.lsp file to run the program/macro when AutoCAD starts up..
Thanks in advance..
Renegade..