How to use DLL's from VB.net in VBA 7.0 (Inventor 2014)

How to use DLL's from VB.net in VBA 7.0 (Inventor 2014)

christoph_stumpf
Contributor Contributor
980 Views
2 Replies
Message 1 of 3

How to use DLL's from VB.net in VBA 7.0 (Inventor 2014)

christoph_stumpf
Contributor
Contributor

I would use dll routines which are placed in an dll i have generated in VB.dot Net (Express Version 2010).

But when i will Reference the dll VBA of Inventor 2014 told it isn't possible.

Who can help me

 

 

0 Likes
981 Views
2 Replies
Replies (2)
Message 2 of 3

ekinsb
Alumni
Alumni

I haven't tried it myself, but it should be possible.  Here are some instructions on creating a .Net class that will support COM.  http://support.microsoft.com/kb/817248  It will be more difficult to do using the Express edition since there are some tools missing for creating COM classes.  It's still probably possible but would be good to have a standard edition to be able to see what code it creates so you know what you have to duplicate manually.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 3

Anonymous
Not applicable

Another option is to creae an inventor addin and expose your class in the "Automation" section.

 

Essentially the addin is a COM dll created in VB.NET so I do not know if you are gaining anthing by using it for this purpose.  Actually you are losing... as the addin is only accessable as type object.  No intellisense.

0 Likes