PDA

View Full Version : compile then execution error when trying to run


voigtmark
2005-10-21, 05:18 PM
i have a lisp file and a DVB file I have compiled into a VLX application. the command runs fine when the routines are loaded individually however the compiled version does not work. i am using acad2005. Code is attached.

kennet.sjoberg
2005-10-21, 05:41 PM
You may look over this line (command "-vbarun" "Module1.mayo_SupportPath")
I found this in the help file :

If you enter -vbarun at the Command prompt, VBARUN displays prompts on the command line.

Macro name: Enter the name of the macro to run

For embedded or loaded global projects, enter the name of the macro to run. If the macro name is not unique among all the currently loaded projects, you must also include the name of the project and module in which the macro is found. For example, to run a macro named Test in a project named Project1, and a module named Module1, enter the following information at the Macro name prompt:

Project1.Module1.Test

To run a macro in a global project that is not currently loaded, enter the name of the DVB file that contains the macro, as well as the project and module names. For example, if the Test macro described previously is contained in a file called Acad_Projects.dvb, and that file is not loaded, you can execute the Test macro by entering the following at the Macro name prompt:

Acad_Projects.dvb!Project1.Module1.Test

AutoCAD automatically loads the Acad_Projects.dvb file and executes the Test macro. The Acad_Projects.dvb file remains loaded once the macro has been completed.


: ) Happy Computing !

kennet

voigtmark
2005-10-28, 08:39 PM
If I compile a project do i still have to load the dvb file? Am i correct and assuming the .dvb file and the .lsp file are supposed to be combined in the .vlx file, or do all of the supporting files need to be present for the app to run? such as the original files as well as the files created using the compiler.

ccowgill
2006-04-14, 04:44 PM
do I need to put the full path in the dvb file to get it to load? this is a pain when transferring all the commands between a computer that is networked, and one that is not.