Add-in doesn't load - error in opening in "signature"

Add-in doesn't load - error in opening in "signature"

d_bouvy
Contributor Contributor
769 Views
10 Replies
Message 1 of 11

Add-in doesn't load - error in opening in "signature"

d_bouvy
Contributor
Contributor

Hello,

 

I've created a new add-in, but impossible to load it. When first opening Inventor after building the project, Inventor knows there is a new add-in, but it doesn't load.

I've tried with the simple add-in included in SDK developper tools (following instructions of readme.txt), but it doesn't work.

I've followed API help about creating new add-in, pdf document from Brian Ekins, read a lot of posts of this forum, but still impossible...and still this message (see attached picture).

 

I'm using Inventor PRO 2024 and visual studio 2019.

 

Anyone has some ideas ?

0 Likes
770 Views
10 Replies
Replies (10)
Message 2 of 11

Michael.Navara
Advisor
Advisor

This looks like the .addin file points to invalid file location. Verify the <Assembly> node in .addin file and update the value to your actual build diretory and file name.

0 Likes
Message 3 of 11

d_bouvy
Contributor
Contributor

Thanks for the answer, but it doesn't work...

I've created a new solution, built it, change the full path of .dll file in the .addin file, copy the manifest file in C:\ProgramData\Autodesk\Inventor Addins\.

Then I open Inventor, it says that an add-in has been blocked, but after, it doesn't appear in tools\add-in...

0 Likes
Message 4 of 11

Michael.Navara
Advisor
Advisor
0 Likes
Message 5 of 11

d_bouvy
Contributor
Contributor

It's done (see attached picture)

0 Likes
Message 6 of 11

Michael.Navara
Advisor
Advisor

I can't see it in the last screenshot, but in the first it is visible.

Missing file name means an issue in .addin file. Try to remove all relevant .addin files until your addin disappears. Then copy the .addin file as you mention above.

Also check and disable all post-build actions in your VS project.

MichaelNavara_0-1711550621809.png

 

 

0 Likes
Message 7 of 11

d_bouvy
Contributor
Contributor

Hello,

 

I think this issue is going to make me crazy 🙂

I've tried again. I remove the old ones, and create a new project ("Essai ADDI IN").

First picture is the result of build.

Then, Inventor find this add-in at first opening, but it doesn't appear in ADD-IN manager in Inventor tools (picture "add-in in Inventor").

And when I open ADD-IN manager with windows (picture "add-in in Windows"), it does appear, but still with an error and no path of my dll file....

0 Likes
Message 8 of 11

Michael.Navara
Advisor
Advisor

If you create new project, !!REMOVE!! everything from post-build events BEFORE first build.

Later on you can create your own actions.

MichaelNavara_0-1711621087881.png

 

If you have been started the build, remove copied files. This is the part of default post-build action (template for 2024 add-in) which copies the file.

XCopy "$(TargetPath)" "%AppData%\Autodesk\ApplicationPlugins\$(TargetName)\" /Y /R
XCopy "$(ProjectDir)Autodesk.InventorAddIn5.Inventor.addin" "%AppData%\Autodesk\ApplicationPlugins\$(TargetName)\" /Y /R   

Delete whole content from "%AppData%\Autodesk\ApplicationPlugins\$(TargetName)\" where $(TargetName) is the name of your addin.

 

 

0 Likes
Message 9 of 11

d_bouvy
Contributor
Contributor

Many thanks for your answers and patience !

 

I've made another try : created a new project, remove everything in post-build, built the solution, modify path in .addin and copy manifest...

This time, Inventor does'nt detect the add-in, and nothing appears in ADD-IN manager !

I don't understand anything...

0 Likes
Message 10 of 11

d_bouvy
Contributor
Contributor

For information, I've followed too this : http://www.hjalte.nl/tutorials/68-addin-wont-load

But without any success !

0 Likes
Message 11 of 11

d_bouvy
Contributor
Contributor

I've created a new project (again....), but this time by following this : http://hjalte.nl/tutorials/60-creating-an-inventor-addin

And it works fine, add-in does appear without any issue !

There is something unclear with the standard elements to create an add-in...

0 Likes