Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
1127 Views, 2 Replies

Update required after running iLogic rule

I have a rule that suppresses/activates various constraints within an assembly based on the value of one parameter, one of my sub parts also contains a rule within it that modifies its geometry based on the same parameter change. What I'm finding is that when a change is made to the parameter (driven by excel), I must perform a local update to update the parameter value within the model, which triggers my rule to run, however this only partially completes the model update. The sub part completely updates its geometry and some of the constraints within my assembly update but I need to perform another local update for all of the constraints to update.

I've tried adding InventorVb.DocumentUpdate() to the end of my rule which had no effect. I've tried adding iLogicVb.UpdateWhenDone = True which didn't help either. Finally I tried adding RuleParametersOutput() with InventorVb.DocumentUpdate() after it, which also didn't solve it.

Any ideas as to what could be causing this need for an additional update after a rule has run, and how I can automate it?