Hi i am trying to 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 used *.lsp ways. Can someone please help. I have found plenty of ways but none work.
相关问题
- Illegal to have multiple roots (start tag in epilo
- 'System.Threading.ThreadAbortException' in
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
相关文章
- vb.net 关于xps文件操作问题
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Checking for DBNull throws a StrongTypingException
- Using the typical get set properties in C#… with p
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
- Fragment Content Overlaps Toolbar and Bottom Navig
You put your
NETLOAD
commands in aLSP
file, and the add theLSP
file to your Startup Suite.Also keep in mind the paths need to use 2 backslashes like this:
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
It is also quite easy to do with the registry, and is my preferred way. See link below. To deploy, you can either create an installer to set the registry keys, or you can do it right in code if you have some code executing outside of AutoCAD.
https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-autoload-DLLs-with-AutoCAD.html