xmlautocaddvb

Setting up .xml to load .dvb plugin on AutoCAD startup


I am trying to set up a .bundle folder to load a series of plugins I've designed for AutoCAD. One of these plugins is a .dvb file so in the 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.

It appears that AutoCAD is not finding the Macro even though I'm telling the XML file to load it in and I can't figure out what the cause of the error is.


Solution

  • As Far as I know the AutoLoader does not support dvb Files.

    See the Whitepaper Autoloader quote:

    The AutoCAD Autoloader currently processes and recognizes these settings:

    “Bundle“,“ARX“,“Lisp“,“CompiledLisp“,“Dbx“,“.NET“,“Cui“,“CuiX“,“Mnu“ and “Dependency“ “Dependency” is used where you have a module that should NOT be processed by AutoCAD. An example would be say a licensing DLL, or maybe a resource DLL.

    You could Write an LSP that loads the dvb, and place that LSP file in the Autoloader, that might do the trick.

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

    etc.

    Kind Regards,

    Alain van Gaalen