Inventor.ApplicationAddInServer.Automation

Inventor.ApplicationAddInServer.Automation

Anonymous
Not applicable
841 Views
1 Reply
Message 1 of 2

Inventor.ApplicationAddInServer.Automation

Anonymous
Not applicable
Is there a small example for allow an AddIn to expose an API of its own to other programs.
I have created an AddIn (vb.net) and i need to use some commands of it in other programms (excel)

thanks for examples

Bruno
0 Likes
842 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I've attached a simple example that demonstrates this. There are two
programs attached. One is an add-in that was created using the add-in
template we deliver with the SDK. The only thing I changed is that I added
a new class, which I specified to be a COM class, and added a simple
function to that class. I also added some implementation code for the
Automation method of the Add-In. If you recompile this it should register
the Add-In and you should see it running in Inventor.



The second program creates a Windows application that connects to Inventor,
gets this add-in, and calls the function. This add-in references in the
add-in assembly to get the definition of the class it exposes.



You should just have to compile the add-in, start Inventor, and then run the
second program to see it work.
--
Brian Ekins
Autodesk Inventor API
0 Likes