menu is not added when change self-register add-in dll to registry free dll

menu is not added when change self-register add-in dll to registry free dll

Anonymous
Not applicable
387 Views
1 Reply
Message 1 of 2

menu is not added when change self-register add-in dll to registry free dll

Anonymous
Not applicable

We migrate from self-register dll to registry free dll by using .addin file and embedded manifest file into add-in dll. The procedure is following ‘DevTV: Registry Free Inventor Add-Ins’(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=20143212).

 

After put the .addin file and dll file into correct folder, the add in item appears in the add in list and can be loaded in Inventor 2018 X64.

2017-09-26_161601.png

 

However, we have a big problem, the menu is disappear.

The problem is because ‘OnActivate’ function does not start when dll is loaded.

When we use self-register type, this function will automatically start when loading dll.

2017-09-26_162448.png

 

We tried to create a new empty add-in project from Inventor 2018 template, and the ‘OnActivate’ function will automatically start when loading dll.

We compared the two project, all the settings and definition are the same.

 

The add-in project is created from Inventor 2013 or earlier template and use visual C++.

 

Can we just modify the source code, instead of creating new project and copy everything over?

0 Likes
388 Views
1 Reply
Reply (1)
Message 2 of 2

YuhanZhang
Autodesk
Autodesk

Can you please follow the steps in the API documentation to convert your C++ addin to reg-free one:

 

RegfreeSteps.png

 

If it still has problems please let me know.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes