Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
rjay75
in reply to: xiaodong_liang

I think I've figured out the issue. It has to deal with how the Inventor interop is referenced. In updating my reference from 2013 to 2015 I didn't realize I had the interop marked to be embedded.

 

It seems with the 2015 interop set to embed the reference using Visual Studio 2015 it has resolution issues. Of not is it also compiles to the largest dll size too. If you're not careful in setting the reference it will mark it to embed. If it's set to true the resolution error happens. Making sure it's set to false allows it to work.

 

IV_interop.png

 

In the sample there are 4 dlls. To test them place them in your iLogic Dlls Addin folder. Rename the dll you're testing to test IVApiTest.dll.

 

Create a rule with the following code to run the test sample.

 

AddReference "IVApiTest.dll"
Imports IVApiTest

IVTest.ConvertParams(ThisDoc.Document)

 

Attach is a sample project with 4 dlls and the project. Using "IVApiTest_e_15_2015.dll" renamed to IVApiTest.dll causes the error. It is the dll compiled with the embed option set to True in Visual Studio 2015.

 

I always use the get_Units() method for parameters on all versions because this has always been an issue. Just recently realized the embedded option causes an issue.

 

Hopefully this may help others if they have strange resolution issues when migrating projects.