Run addin automatically once Inventor has fully opened

Run addin automatically once Inventor has fully opened

Anonymous
Not applicable
518 Views
4 Replies
Message 1 of 5

Run addin automatically once Inventor has fully opened

Anonymous
Not applicable

I'd like to run my addin automatically once Inventor has fully opened, without having to interface with it manually.

 

Currently it loads on startup, but the only way I can see to get it to actually run is to make it load in to the ribbon and hit the button it places there.

 

Is this possible?

0 Likes
Accepted solutions (2)
519 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Accepted solution

fixed my problem using some COM, but would be interested if there is still a way of doing this internally within addin script...

0 Likes
Message 3 of 5

AlexFielder
Advisor
Advisor

Hi Harry,

 

It isn't something I have looked at in a while but I used to have an Addin present a userform for population drawing property values once a new drawing file had been created.

 

IIRC I had to use the "ApplicationEvents.OnOpenDocument" Event paying particular attention to the "EventTimingEnum.kAfter" part.

 

Looking through the Inventor API Help for either of the above should help you.

 

Regards,

 

Alex.

0 Likes
Message 4 of 5

Anonymous
Not applicable
Thanks Ales, I'll check it out.

--
Harry Keen

Lead Design Engineer
@harry_keen18

Opendesk
Lime Wharf
25 Vyner Street
London E2 9DJ
0800 0149 951
@open_desk
0 Likes
Message 5 of 5

smilinger
Advisor
Advisor
Accepted solution

I think you should subscribe to the ApplicaitonEvents.OnReady event, which is fired just after Inventor is fully opened.

 

0 Likes