- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using AutoCADMechanical 2010, and I have a C# function called detailInsert. Using netload the addin works perfect. I'm unable to get it to load at startup.
I've copied the demand load code from this Autodesk blog: http://through-the-interface.typepad.com/through_the_interface/2010/03/creating-demand-loading-entri...
However, typing "detailInsert" still says "command not found".
Here is my command method line:
[CommandMethod("CompanyInitials", "DetailInsert", "DetailInsert", CommandFlags.Session)]
Here is where I call the register and unregister functions.
void IExtensionApplication.Initialize()
{
RegistryUpdate.RegisterForDemandLoading();
}
void IExtensionApplication.Terminate()
{
// Do plug-in application clean up here
RegistryUpdate.UnregisterForDemandLoading();
}
Does anyone have any ideas for how to make this work?
Solved! Go to Solution.