Message 1 of 12
Running a vba routine

Not applicable
03-07-2001
10:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I developed a vba application that I want to be executed via a lisp
function. The application is loaded at startup via the acad.lsp file
and I define a routine in the acaddoc.lsp file which actually runs the
routine. The code to define the routine to run the macro is as follows:
(defun c:ll ()
(command "-vbarun" "Label_Manager.mdlRunLMan.LabelMan_Play") ; run
labelmanager
(princ) ; clean exit
)
When I run the program via the lisp command (typing ll at command
prompt) the program works correctly except for the fact that after it
has ended autocad reports back "Execution Error" at the command line.
If I run the routine manually by typing VBARUN at the comand prompt and
running it via the dialog box, I do not recieve the error message. Other
than the error message being routined, the programs operation is
correct.
Idea's??
Thanks,
Ryan
--
Ryan Small
Solid Caddgroup Inc. - Burlington, Ontario
Authorized Autodesk Systems Center
Ph: (905)331-9670, Fx: (905)331-7280
ryan@solidcadcam.com
http://www.solidcadcam.com
function. The application is loaded at startup via the acad.lsp file
and I define a routine in the acaddoc.lsp file which actually runs the
routine. The code to define the routine to run the macro is as follows:
(defun c:ll ()
(command "-vbarun" "Label_Manager.mdlRunLMan.LabelMan_Play") ; run
labelmanager
(princ) ; clean exit
)
When I run the program via the lisp command (typing ll at command
prompt) the program works correctly except for the fact that after it
has ended autocad reports back "Execution Error" at the command line.
If I run the routine manually by typing VBARUN at the comand prompt and
running it via the dialog box, I do not recieve the error message. Other
than the error message being routined, the programs operation is
correct.
Idea's??
Thanks,
Ryan
--
Ryan Small
Solid Caddgroup Inc. - Burlington, Ontario
Authorized Autodesk Systems Center
Ph: (905)331-9670, Fx: (905)331-7280
ryan@solidcadcam.com
http://www.solidcadcam.com