Message 1 of 6
acad.lsp + acaddoc.lsp clash

Not applicable
01-07-2008
02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have read a lot of postings but I still can't quite find the answer to
this:-
I have a desktop icon which starts AutoCAD in a directory with the following
2 files:-
acad.lsp which contains the following
(defun S::STARTUP()
(command "_-vbaload" "StoreSpace.dvb")
(command "_-VBARUN" "Initialise")
)
and acaddoc.lsp which contains the following:-
(defun S::STARTUP()
(command "_-VBARUN" "Runsynchronise")
)
This produces the following error:-
"Command: -vbarun
Macro name: ShowFixtures Execution error"
and StoreSpace.dvb is not loaded.
If I move acaddoc.lsp, acad.lsp runs and loads StoreSpace.dvb but obviously
the ShowFixtures sub does not run, unless I move it back into the directory
after starting up AutoCAD in which case it runs on each drawing opening. I
don't understand why this causes a problem. I would expect acad.lsp to run
on startup then acaddoc.lsp to run on opening of each drawing.
Regards
Dave Preston
this:-
I have a desktop icon which starts AutoCAD in a directory with the following
2 files:-
acad.lsp which contains the following
(defun S::STARTUP()
(command "_-vbaload" "StoreSpace.dvb")
(command "_-VBARUN" "Initialise")
)
and acaddoc.lsp which contains the following:-
(defun S::STARTUP()
(command "_-VBARUN" "Runsynchronise")
)
This produces the following error:-
"Command: -vbarun
Macro name: ShowFixtures Execution error"
and StoreSpace.dvb is not loaded.
If I move acaddoc.lsp, acad.lsp runs and loads StoreSpace.dvb but obviously
the ShowFixtures sub does not run, unless I move it back into the directory
after starting up AutoCAD in which case it runs on each drawing opening. I
don't understand why this causes a problem. I would expect acad.lsp to run
on startup then acaddoc.lsp to run on opening of each drawing.
Regards
Dave Preston