I am trying to automatically load dll files to Autocad 2018.
How can i achieve that?
I want to automate so it can do it on startup. With netload everything works.
I have used *.lsp ways. Can someone please help? I have found plenty online of ways but none work.
AutoCAD's official way to load .dll files written in .Net on startup is to use autoloader feature. You basically bundle the .dll with any other files you want into a default folder where AutoCAD reads at startup to load all plug-ins. This is especially good if you want to distribute your plug-in (.dll) as a setup file to install on multiple machines.
First step is to create a bundle folder in "
%ProgramData%/Autodesk/ApplicationPlugins
". the bundle folder is a normal windows folder that ends with .bundle (ex. MyApp.bundle)Inside this folder you need to have a folder named ("Contents") and a file named ("
PackageContents.xml
").Place .dll inside the contents folder
code inside
PackageContents.xml
can be as simple as the following (Change things like "MyApp
", "MyName
", etc.. and it should work for you):I think the above is enough to answer your question but if you need more read the article in the following link: http://adndevblog.typepad.com/autocad/2013/01/autodesk-autoloader-white-paper.html