Run an Addin from VB

Run an Addin from VB

Anonymous
Not applicable
497 Views
2 Replies
Message 1 of 3

Run an Addin from VB

Anonymous
Not applicable

Morning and a Happy New Year to All,

 

It seems that it is never too early in the year to be baffled by Inventor and VB!

 

I am writing an external program to place various iFeatures into a model, from a custom UI.

 

Sometime previous to my starting at the company, an Addin was written to add crosshairs and a work point when an iFeature is added manually (this is to allow some compatibility with EdgeCam I believe).

 

When my program puts in an iFeature, the addin doesn't run (presumably because the triggers aren't being fired from my program).

 

Is there any (easy) was to get trigger an addin event - something along the lines of

 

invApp.Addins("iFeaure Addin").Run

 

or is it going to be easier to rewrite the iFeautre addin (to which I don't have the code)?

 

As always, any help would be greatly appreciated 🙂

 

Jon

 

 

 

 

0 Likes
Accepted solutions (1)
498 Views
2 Replies
Replies (2)
Message 2 of 3

philippe.leefsma
Alumni
Alumni
Accepted solution

Hi Jon,

 

This is only doable if the addin expose a COM callable interface. So if it doesn't and you don't have the source code, then I'm affraid you will have to rewrite it yourself.

 

Here are couple of links you may find helpful:

 

http://adndevblog.typepad.com/manufacturing/2012/07/connecting-an-inventor-addin-from-an-external-ap...

 

http://adndevblog.typepad.com/manufacturing/2012/07/connect-to-an-inventor-add-in-an-external-applic...

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

Anonymous
Not applicable

Hi Philippe,

 

 Very useful reading, and a new source of information.

 

Thanks

 

Jon

0 Likes