Automatically execute code Add-in

Automatically execute code Add-in

n_Sovljanski
Advocate Advocate
798 Views
2 Replies
Message 1 of 3

Automatically execute code Add-in

n_Sovljanski
Advocate
Advocate

Hi,

 

I am using standard way to execute code such as:

_buttonDef1.OnExecute += new ButtonDefinitionSink_OnExecuteEventHandler(ButtonDef1_OnExecute);

 

but, I want to use some Inventor event (OnUpdate, OnChange, ...) and execute code in add-in automatically. Is it possible?

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

wgraham
Advocate
Advocate

Kind of vague with what you're trying to accomplish, but look at the API help for DocumentEvents and ApplicationEvents.  There's quite a bit of OnChange/OnOpen/OnSave/OnActivate type events.

0 Likes
Message 3 of 3

n_Sovljanski
Advocate
Advocate
Accepted solution