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

iLogic Script to check if part in drawing has external rule

I have an iLogic script in my drawing that was checking for a local iLogic rule inside of the part and it would do something if the rule was not found. I have since moved the part iLogic rule to be external and that check no longer works. I've come across a post with info from the dev team that there is no api to look for external rules. So I figure there should be some work around possible.

 

I was thinking about checking for triggers since the part still has those even with the rule being external. I've looked through the iLogic injector @MegaJerk made and found a thread of his and both reference .PropertySets.Item("iLogicEventsRules"). I've dug around in a file that has ilogic triggers and I can't see or access that property set at all. When I try to run thisapplication.activedocument.PropertySets.Item("iLogicEventsRules") I get an activex can't create object error.

 

Is there some trick to accessing the iLogic trigger information?

Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style