Save Dialog when activating modelstate

Save Dialog when activating modelstate

J-Camper
Advisor Advisor
160 Views
2 Replies
Message 1 of 3

Save Dialog when activating modelstate

J-Camper
Advisor
Advisor

I am starting to move some of my external rules into an addin.  I just moved a rule in that process components and it is behaving differently than when I run it as an external rule.

The difference occurs when I activate a sub assembly's ModelState.  I have no dialog boxes at all when running the external rule, but when I execute the addin function button I get a prompt to save the changes to the part files within the sub assembly as I'm activating another ModelState. 

 

I can workaround this difference by manually toggling SilentOperation on temporarily and back off after I activate the ModelState, but I don't know why I need to do that for the addin function but not the external rule.

 

Is there something I can set up in my addin to make it behave like the external rule when activating ModelStates?

Why is the Activate Method silent by default in iLogic but not when called in a vb.Net addin?

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

WCrihfield
Mentor
Mentor
Accepted solution

Hi @J-Camper.  My guess is that you have the 'Silent Operation' option checked within the Options tab of your external iLogic rule, which will act that way.  I have that turned on in most of my iLogic rules too.  It is easy to overlook.

WCrihfield_0-1696959891022.png

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

J-Camper
Advisor
Advisor

@WCrihfield,

 

That was it. I didn't even think about that, thank you.

 

0 Likes