Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic to run when assembly component is deleted?

2 REPLIES 2
Reply
Message 1 of 3
Allen_Hart
285 Views, 2 Replies

iLogic to run when assembly component is deleted?

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

 

2 REPLIES 2
Message 2 of 3

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:

 

ilogic.png

 

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.

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

Thanks Philippe.  That confirms what I suspected.  Was hoping there might be an "easy button"   Smiley LOL

 

Allen

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report