Is it possible to have an iLogic rule that fires when an assembly component is deleted?
When the rule runs I want to also delete the ipt file of that component.
Examples of how to do this would be greatly appreciated.
Thanks
Allen
Hi Allen,
Unfortunately I'm pretty sure this isn't doable with iLogic. It isn't really suitable for "advanced" customization involving events. Take a look at the iLogic "Triggers" dialog to get an idea about what iLogic offers to run rules:
Reacting to an occurrence supressed will however be fairly straighforward when using the API, you need to have an add-in deployed for that obviously. In that case you can use the "AssemblyEvents.OnOccurrenceChange" event:
The changes reported by this event are if any of the following states of an occurrence change: grounded, adaptive, visible, enabled, suppressed, and repositioned (transformed). The type of change and information related to the change is passed through the context argument.
(See Help Files for more details).
I hope that helps,
Philippe.
Thanks Philippe. That confirms what I suspected. Was hoping there might be an "easy button"
Allen