Addin cannot be loaded on win10 system installed with image backup system

Addin cannot be loaded on win10 system installed with image backup system

lzs013
Advocate Advocate
941 Views
9 Replies
Message 1 of 10

Addin cannot be loaded on win10 system installed with image backup system

lzs013
Advocate
Advocate

I tried to make an addin. This addin can be loaded and run normally on a separately installed win10 system, but it cannot be loaded on the win10\win7 system installed with the image backup system. How can I solve it?

My version of Inventor is 2020.1

0 Likes
Accepted solutions (1)
942 Views
9 Replies
Replies (9)
Message 2 of 10

HideoYamada
Advisor
Advisor

Hello,

 


@lzs013 wrote:

but it cannot be loaded on the win10\win7 system installed with the image backup system.


What does this mean?

Does your AddIn appear in the AddIn Manager?

Or,

Checked enable at the AddIn Manager but it is not kept when you reopen the AddIn Manager?

 

This thread may help you...

Add-in automatically unloads on some computers 

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes
Message 3 of 10

lzs013
Advocate
Advocate

Checked enable at the AddIn Manager but it is not kept when I reopen the AddIn Manager

0 Likes
Message 4 of 10

HideoYamada
Advisor
Advisor

Hi,

 

Your AddIn requires the library of Inventor 2019.

Is same or newer library installed to the other PCs?

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
Message 5 of 10

lzs013
Advocate
Advocate

What library are you referring to?
I will test this addin on a lot of computers. The Inventor software on the computer is installed in the same way. The difference is the installation method of the windows system. Any computer installed with the image backup system will have this problem. Any computer installed the windows system independently will use the addin normally.

0 Likes
Message 6 of 10

HideoYamada
Advisor
Advisor

Hi,

 

YourAddIn.dll may fail to find Interop.dll.

Is a following file placed in the PC which is having trouble?

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Autodesk.Inventor.Interop\v4.0_23.0.0.0__d84147f8b4276564\autodesk.inventor.interop.dll

 

If you make a simple add-in (e.g. only displays a message box "Hello World" at Active() ), does it work or not on the PCs?

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes
Message 7 of 10

HideoYamada
Advisor
Advisor

Report : I compiled your code and it can be added to Inventor successfully.

Is there other addin that has same clsid or guid?

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes
Message 8 of 10

lzs013
Advocate
Advocate

The Interop.dll file for all computers is the same, but there is still a problem with the computer installed with the image backup system. Is it possible that the file permissions issue? One reason I just discovered that I can't load addin is that the signature file can't be opened, as shown.F367A4C8-D661-4bc9-9935-36C23CE46594.pngtianruo_2019-11-7-637087161561032470.png

0 Likes
Message 9 of 10

NachoShaw
Advisor
Advisor
Accepted solution

Hey

 

I have tried to compile your applciation on my pc but one thing that jump out at me was in the .addin file

Your code is this

<Addin Type="Standard">
  <!--Created for Autodesk Inventor Version 23.0-->
  <ClassId>{b0d4c39f-420e-4941-beb9-db9b98f89d1b}</ClassId>
  <ClientId>{b0d4c39f-420e-4941-beb9-db9b98f89d1b}</ClientId>
  <DisplayName>LZSAddIn_V2</DisplayName>
  <Description>LZSAddIn_V2</Description>
  <Assembly>LZSAddIn_V2.dll</Assembly>
  <LoadOnStartUp>1</LoadOnStartUp>
  <UserUnloadable>1</UserUnloadable>
  <Hidden>0</Hidden>
  <SupportedSoftwareVersionGreaterThan>18..</SupportedSoftwareVersionGreaterThan>
  <DataVersion>1</DataVersion>
  <UserInterfaceVersion>1</UserInterfaceVersion>
</Addin>

Highlighting this line

<Assembly>LZSAddIn_V2.dll</Assembly>

shouldnt this have a full unc path to the dll? i do on all of mine

<?xml version="1.0" encoding="utf-8"?>
<Addin Type="Standard">
  <ClassId>{c2f15a84-ec14-4769-b2f3-ffd673442a9d}</ClassId>
  <ClientId>{c2f15a84-ec14-4769-b2f3-ffd673442a9d}</ClientId>
  <DisplayName>MyApplication</DisplayName>
  <Description>A tool example for the Forum</Description>
  <Assembly>C:/Users/NachoUK/source/repos/Inventor Apps/MyApp/MyApp/bin/Debug/MyApp.dll</Assembly>
  <LoadBehavior>0</LoadBehavior>
  <UserUnloadable>1</UserUnloadable>
  <Hidden>0</Hidden>
  <SupportedSoftwareVersionGreaterThan>23..</SupportedSoftwareVersionGreaterThan>
  <SupportedSoftwareVersionLessThan>25..</SupportedSoftwareVersionLessThan>
  <DataVersion>1</DataVersion>
  <UserInterfaceVersion>1</UserInterfaceVersion>
</Addin>

my code is purely an example of my test.addin with a full unc. I would have thought that without a path, surely it cannot load the DLL

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 10 of 10

lzs013
Advocate
Advocate

Thank you

0 Likes