Add exsternal rule to event trigger when running the rule

Add exsternal rule to event trigger when running the rule

snuQJKPK
Explorer Explorer
262 Views
2 Replies
Message 1 of 3

Add exsternal rule to event trigger when running the rule

snuQJKPK
Explorer
Explorer

Hi,

 

I have a exsternal rule that changes the iproperties description of a part by using OrientedMinimumRangeBox. I use the description in the parts list to show the outer dimension of plates e.g. "PL - 5x120x250". 

 

Since I only use this on some parts, I want to add it to the event trigger Part Geometry Change with the same rule, so i dont have to manually rerun the rule when i make modifications of the part. 

 

Is this possible?

 

Thank you in advance for your help!

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

WCrihfield
Mentor
Mentor
Accepted solution

Hi @snuQJKPK.  Are you asking if an external rule can be put into the 'This Document' tab of the Event Triggers dialog, under the "Part Geometry Change' event, for some specific documents purely by code, instead of manually?  If that is what you are asking about, then yes, we can do that, but it is pretty complicated, and we still have not quite worked out all of the bugs.  Below is a link to an article I wrote about how to do this, but the link will likely cease to work after some time in early March, because all of those types of articles are going to be destroyed by Autodesk around that time.  You can read all about it though up until that point.

Add An iLogic Rule To An Event Trigger Using An External iLogic Rule 

And below links to a couple other related articles involving this process that you might find interesting/helpful.

Copy All iLogic Rules & Event Triggers From One Document To Another Using An External iLogic Rule 

Copy All Rules & Event Triggers Settings From Selected Component To All Other Components - iLogic 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

snuQJKPK
Explorer
Explorer

Hi @WCrihfield and thanks for the quick reply!

 

That is correct.

I have read your article earlier, but i was hoping that there would be an easier way to do this.

 

I will try to implement this later, and just continue to do this manually for now 🙂

0 Likes