How use dll in iLogic?

How use dll in iLogic?

Hubert_Los
Advocate Advocate
410 Views
4 Replies
Message 1 of 5

How use dll in iLogic?

Hubert_Los
Advocate
Advocate

Hello,

I have created a .dll file. It works in VS Studio. But I can't use it in iLogic. How can I do this in iLogic?

 

 

AddReference "D:\Projects\dllSample.dll""

Dim oDll As New dllSample.dllClassName
oDll.dllFunctionName() 

 

 

 

0 Likes
Accepted solutions (1)
411 Views
4 Replies
Replies (4)
Message 2 of 5

Michael.Navara
Advisor
Advisor

The code looks fine. Only one double quotes should be at the end of the first line

0 Likes
Message 3 of 5

cidhelp
Advocate
Advocate

AddReference only accepts a DLL-Filename without path. The location is configured in the iLogic-Configuration.

https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-32B66838-22E4-4A0A-B5BB-862350C76B36

 

0 Likes
Message 4 of 5

Michael.Navara
Advisor
Advisor

Hi @cidhelp

The full path works as well. Maybe there can be some issues with references to the third party libraries if any, but reference to the single external DLL works.  

0 Likes
Message 5 of 5

Curtis_Waguespack
Consultant
Consultant
Accepted solution

@Hubert_Los, if the previous suggestions do not resolve this for you, then you might review this AU class.

 

of particular note would be the iLogic + Class Library section

https://static.au-uw2-prd.autodesk.com/Class_Presentation_IM227119_Making_the_Leap_from_iLogic_to_Ad...

 

https://www.autodesk.com/autodesk-university/class/Inventor-iLogic-Beyond-Basics-2017#video

 

Hope that helps, Curtis

 

EESignature

0 Likes