Configuring .xml to Load the .dvb Plugin When AutoCAD Launches

I am trying to set up a .bundle folder to download a number of plugins that I developed for AutoCAD. One of these plugins is a .dvb file, so in PackageContents.xml I have the following XML code

<ComponentEntry AppName = "" Version = "2014.1" ModuleName = "./Contents/Windows/WindowsDoors.dvb" AppDescription = "" PerDocument ="True" LoadOnAutoCADStartup="True"> <Commands> <Command Local="CSC" Global="CAD_STANDARD_CREATOR" /> <Command Local="CSB" Global="CAD_STANDARD_BLOCK" /> <Command Local="CSP" Global="CAD_STANDARD_PATH" /> </Commands> </ComponentEntry> 

When I start AutoCAD and try to run the corresponding plugin, the command line tells me

 Command: -vbarun Macro name: RunMeWindowDoor Macro not found. 

AutoCAD does not seem to find the macro, although I say the XML file loads it, and I cannot figure out what the cause of the error is.

+5
source share
1 answer

As far as I know, AutoLoader does not support dvb files.

See "Document autoloader" :

AutoCAD autoloader currently processes and recognizes these Parameters:

Beam, ARX, Lisp, CompiledLisp, Dbx, NET, Tsui, CUIx, Mnu, and Dependency Dependency is used where you have the module that is NOT handled by AutoCAD. An example would be the licensing of DLLs, or possibly resource DLLs.

You can write an LSP that loads dvb and put that LSP file in Autoloader, which can do the trick.

 (defun C:CSC () (vl-vbaload "WindowsDoors.dvb") (vl-vbarun "WindowsDoors.dvb!CAD_STANDARD_CREATOR") ) 

and etc.

Respectfully,

Alain van Gaalen

+1
source

Source: https://habr.com/ru/post/1202887/


All Articles