Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bim01
619 Views, 5 Replies

How to invoke a method in a dll with Invenotr API?

I have encountered a problem during coding with my colleagues, is anyone can help, Here is the problem:

  • in “project2”, I defined a class named “CsA”and a method called “FuncA()”, compiled the “project2”to “project2.dll”.
  • in “project1”,I add the reference of “project2.dll”, then in the Activate(……) function, I tried to instantiate an object of “CsA, but faild here (see the picture).
  • And I tried another way: I put “CsA”in “project1”then compiled it, the program runs well.
  • So how to invoke a method in a dll coded by someone else under the circumstances of collaborating with colleagues? Or it is impossible to do so in Inventor?

Circumstances: Inventor professional 2018, windows 7

problem.jpg

Tags (2)
Labels (1)