can we run an addin thru IN-API?

can we run an addin thru IN-API?

naresh_kalyan
Advocate Advocate
463 Views
4 Replies
Message 1 of 5

can we run an addin thru IN-API?

naresh_kalyan
Advocate
Advocate
How can we run an existing addin thru Inventor-API?
Thanks in advance.

Kalyan
0 Likes
464 Views
4 Replies
Replies (4)
Message 2 of 5

jeff.pek
Community Manager
Community Manager
Hi Kalyan -

Can you be more specific about what you're trying to do? What do you mean by "run an existing addin"?

Thanks,
Jeff
0 Likes
Message 3 of 5

naresh_kalyan
Advocate
Advocate
Thanks for the quick reply, Dear Jeff...

I installed "shrink wrap" add-in in my machine. Now, I would like to write a macro to run that command.

I gone thru the site, mostly I'm able to get codes reg. how to create Add-in. But, I failed to get a code which invokes the add-in what I installed. but still few lines I'm able to find.


Dim oaddin As ApplicationAddIn
Set oaddin = ThisApplication.ApplicationAddIns(23)

msgbox oaddin.description
0 Likes
Message 4 of 5

jeff.pek
Community Manager
Community Manager
Well, if you've got the addin loading -- i.e., it shows up on the addins list, and indicates that it's loaded -- then you should be able to execute any commands that you've created ControlDefinition objects for.

You need to get hold of the ControlDefinition object, then call its Execute() method. Or, you can create a toolbar, and add a button for the command to the toolbar.

Jeff
0 Likes
Message 5 of 5

naresh_kalyan
Advocate
Advocate
Oh, Gr8....

Thank you so much....
0 Likes