iLogic Event trigger doesn't trigger

iLogic Event trigger doesn't trigger

Frederick_Law
Mentor Mentor
612 Views
3 Replies
Message 1 of 4

iLogic Event trigger doesn't trigger

Frederick_Law
Mentor
Mentor

iLogic Event trigger won't work after IV start.

Only work after Event Trigger page is opened.

I have 2 Event Triggers: Before Save and Model State Activate.

IV2023.3

Log is set to Information.

My rules write to it so I can debug.

@johnsonshiue 

0 Likes
613 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Hi @Frederick_Law.  Just curious if you added those rules to the Event Triggers manually, or by code?  Are they both on the 'This Document' tab, or on other tabs?  Are those the only two rules in the Event Triggers for that specific document?  Are both rules external rules, or are they internal, or both?  If they are both external rules, are there any internal rules in the document?  If the answers to that last question are yes then no, then have you tried putting an empty internal iLogic rule in that document (not in the Event Triggers, just the document), just as a test to see if that fixes the problem.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

Frederick_Law
Mentor
Mentor

Event Trigger manually

One in All Document (looking at it now it shouldn't be All Document, should be Part and Assembly).

One in Part and assembly.

Only 2 rules.  Both External.

No internal rule in document.

 

I disabled some addins this morning and the trigger worked.

Also changed one rule from All Documents to Part and Assembly.

I'll check which addin blocked the Trigger.

 

PS:

Only has iLogic addin, still won't trigger.

Edit rule, run rule won't get trigger.

Only after open trigger page will fix it.

 

One assembly will "activate" the trigger.

Other assembly and part won't 😵

0 Likes
Message 4 of 4

Frederick_Law
Mentor
Mentor

After adding sub Main() end sub to my rules, it's triggering.

0 Likes