Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Call a dll with the CFunc function

1 REPLY 1
Reply
Message 1 of 2
AmbCo
413 Views, 1 Reply

Call a dll with the CFunc function

Hello,

 

After trying to use the ByRef method and found that it is not fully implemented in Intent actually, I had a look at the CFunc function to call a dll with the code.

This dll created in VB.net works fine, but it seems that the CFunc function is not recognized by Intent ( "CFunc : No such function" ).

The Dll has been put in the bin directory of Intent and is found.

 

Here is my Intent code created as a function :

 

Function Get_Inertia() As List
 Return CFunc("Inertia", "InertiaDll")
End Function

 

> InertiaDll is the name of the called Dll

> Inertia is the name of the Public Function in the Dll

 

Has someone ever used this CFunc function and could help me with it please ?

 

Tags (1)
1 REPLY 1
Message 2 of 2
Jon.Balgley
in reply to: AmbCo

You don't need the "return".  Even though "CFunc" looks like a regular function, it is a special thing.

 

Be sure to come to the "ETO Potlatch" on October 11, where we will discuss these issues.


Jon Balgley

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report