Message 1 of 6
How to invoke a method in a dll with Invenotr API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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