- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have developed a plugin in a form of a DLL written in C# .NET. Let call it MyLib.dll. It has several commands available for our users. The commands work fine when I manually load the DLL using NETLOAD. I want the DLL to be autoloaded. I follow a "known good" sample program to create a bundle folder for the plugin. I have also created a cuix file to add the plugin to the Ribbon. The cuix works fine. Unfortunately, the DLL somehow is not autoloaded. Please help me to find out what goes wrong.
The bundle folder structure is like this:
C:\ProgramData\Autodesk\ApplicationPlugins\MyLib.bundle
|
|--> PackageContents.xml
|
|--> Contents
|
|--> MyLib.dll
|
|--> MyLib.cuix
And the PackageContents.xml file is like this:
<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage
SchemaVersion="1.0"
AppVersion="1.0.0"
Name="MyLib"
Description="My library of programs"
ProductCode="{...GUID...}">
<CompanyDetails Name="XYZ Company" />
<Components>
<RuntimeRequirements SupportPath="./Contents"
OS="Win64"
Platform="AutoCAD*"
SeriesMin="R19.0" />
<ComponentEntry AppName="MyLib"
AppDescription="My Library"
ModuleName="./Contents/MyLib.dll"
LoadOnAutoCADStartup="True" />
<ComponentEntry AppName="MyLib"
AppDescription="My Library"
ModuleName="./Contents/MyLib.cuix" />
</Components>
</ApplicationPackage>
There is no error message during startup. But the commands doesn't work (because the DLL is not loaded). And I also find that the DLL is not registered in the registry. I am under the impression that the Autoloader in AutoCAD will automatically load the DLL and register the DLL for me.
I have also tried replacing the LoadOnAutoCADStartup option with LoadOnCommandInvocation. But that doesn't work either.
Is there a way to see any hidden warning message or error message from AutoCAD startup process to show me what AutoCAD doesn't autoload the DLL?
Can someone give me a suggestion as of why this plugin bundle cannot be autoloaded into AuotCAD?
Thanks.
JC
Solved! Go to Solution.