Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Addin didn't work in another computer

2 REPLIES 2
Reply
Message 1 of 3
1398463346
233 Views, 2 Replies

Addin didn't work in another computer

1398463346
Contributor
Contributor

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.

1398463346_0-1702286490317.png

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

0 Likes

Addin didn't work in another computer

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.

1398463346_0-1702286490317.png

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

Labels (4)
2 REPLIES 2
Message 2 of 3
YuhanZhang
in reply to: 1398463346

YuhanZhang
Autodesk
Autodesk

@1398463346 

 

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):

YuhanZhang_0-1702720105636.png

3. Complete the wizards:

YuhanZhang_1-1702720224074.png

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.



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.

@1398463346 

 

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):

YuhanZhang_0-1702720105636.png

3. Complete the wizards:

YuhanZhang_1-1702720224074.png

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.



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.

Message 3 of 3
1398463346
in reply to: YuhanZhang

1398463346
Contributor
Contributor
Thanks for your answer, I did try to create a plugin with Inventor Addin Wizards and it did work, but I am still curious about the cause of this problem, so I was wondering if anyone knows the cause and has solved similar incidents
0 Likes

Thanks for your answer, I did try to create a plugin with Inventor Addin Wizards and it did work, but I am still curious about the cause of this problem, so I was wondering if anyone knows the cause and has solved similar incidents

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report