i-Logic import .dll error

i-Logic import .dll error

Jef_E
Collaborator Collaborator
253 Views
0 Replies
Message 1 of 1

i-Logic import .dll error

Jef_E
Collaborator
Collaborator

Hi,

 

I have a "successful" working Add-In installed on  10 machines at our office. And now I would like to expose the AddIn power a little further by making it available in iLogic to the user, so they can do "Difficult" tasks using a small call in iLogic (no real programming knowledge required).

 

To do this I use following code block ( sample program )

 

AddReference "C:\ProgramData\MyAddin\Assembly\MyAddin.dll"
AddReference "Autodesk.Inventor.Interop.dll"

Imports Inventor
Imports MyAddin
Sub Main
    
	Dim oInteropModules As New MyAddin.InteropModules
	Dim oType As HeadTypeEnum = DirectCast([Enum].Parse(GetType(HeadTypeEnum), Type), HeadTypeEnum)

	r = oInteropModules.CalcSmallRadius(oType, ID, Thickness)
	R = oInteropModules.CalcLargeRadius(oType, ID, Thickness)
	
	ThisApplication.ActiveDocument.update2
	
End Sub

And this works well, on 9 of the 10 user machines.

 

On one machine I get the following error,

Error in rule: UPDATE_VALUES, in document: Part1

Could not load type 'XpressTools.InteropModules' from assembly 'XpressTools, Version=1.0.6711.18973, Culture=neutral, PublicKeyToken=null'.

What can I do to fix this error? I already tried to uninstall and re-install Inventor.



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
254 Views
0 Replies
Replies (0)