I code a addin Inventor, it's work is very well, but I'm on another computer to install the same version of the Inventor, then put the 'Autodesk. TestAddin. Inventor.Addin' File and 'TestAddin.dll' file into the corresponding directory, This addin can be loaded normally, but none of its functions can be implemented. After debugging, I found that the 'Activity' function cannot be entered into this computer, that is, the Com object cannot be registered. I don't understand why. The only diffirence between tow computers is that experimental computer was not installed ‘SDK\Develop.msi’. Does every computer with Inventor have to have 'Develop.msi' installed for the addin to work? I wrote the addin in ATL.
Some screenshots may be useful:
1: open Inventor->Tools->opertion->Add-Ins.it shows that the dll loaded,but it not into activate function actually.
2: the code link
https://github.com/WittyQ/InventorAddinTest.git
the error computer version:Windows 10 Pro
Inventor Version:27.40.41801.0000
I'd be grateful if anyone could help me out!
Thanks!
Wade
I code a addin Inventor, it's work is very well, but I'm on another computer to install the same version of the Inventor, then put the 'Autodesk. TestAddin. Inventor.Addin' File and 'TestAddin.dll' file into the corresponding directory, This addin can be loaded normally, but none of its functions can be implemented. After debugging, I found that the 'Activity' function cannot be entered into this computer, that is, the Com object cannot be registered. I don't understand why. The only diffirence between tow computers is that experimental computer was not installed ‘SDK\Develop.msi’. Does every computer with Inventor have to have 'Develop.msi' installed for the addin to work? I wrote the addin in ATL.
Some screenshots may be useful:
1: open Inventor->Tools->opertion->Add-Ins.it shows that the dll loaded,but it not into activate function actually.
2: the code link
https://github.com/WittyQ/InventorAddinTest.git
the error computer version:Windows 10 Pro
Inventor Version:27.40.41801.0000
I'd be grateful if anyone could help me out!
Thanks!
Wade
The SDK\DeveloperTool.msi provides the header files for you to compile your Inventor addin project, it is not required when load your DLL to Inventor.
Seems your addin project was converted from registry-based to reg-free, so there are some redundant files(like .rgs) in your project. I would suggest that you create a new C++ addin using the Inventor Addin Wizards and copy necessary code from your project to the new addin project, you can follow below steps to create the new addin:
1. Install DeveloperTool.msi, this will provide the Inventor Addin Wizards for Visual Studio.
2. New a project in your Visual Studio, and choose Inventor Addin wizards(I use Inventor 2024 Addin wizards as example):
3. Complete the wizards:
4. Now in the new addin project you can copy the code from your old project, then compile the new project to see if it works on different machines.
The SDK\DeveloperTool.msi provides the header files for you to compile your Inventor addin project, it is not required when load your DLL to Inventor.
Seems your addin project was converted from registry-based to reg-free, so there are some redundant files(like .rgs) in your project. I would suggest that you create a new C++ addin using the Inventor Addin Wizards and copy necessary code from your project to the new addin project, you can follow below steps to create the new addin:
1. Install DeveloperTool.msi, this will provide the Inventor Addin Wizards for Visual Studio.
2. New a project in your Visual Studio, and choose Inventor Addin wizards(I use Inventor 2024 Addin wizards as example):
3. Complete the wizards:
4. Now in the new addin project you can copy the code from your old project, then compile the new project to see if it works on different machines.
Can't find what you're looking for? Ask the community or share your knowledge.