Component Suppression Change Event Trigger Not Working For Unsuppressed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have come across an unusual function of Inventor.
If an iLogic rule is set to trigger upon Component Suppression Change, then the rule will trigger correctly when turning an active component to a suppressed state.
But if a suppressed component is then made active, the rule does not trigger.
This is despite the Autodesk Inventor help page stating that the "Component Suppression Change fires when an assembly component is suppressed or unsuppressed".
I have also found that this only occurs when unsuppressing an assembly component. The rule will trigger correctly only on part components.
Has anyone else encountered this and found a work-around solution?
Or is it possible to write an iLogic which will trigger when any assembly component's suppression state is changed or activated?
I have a simplified example but the forum system doesn't seem to be allowing me to post a .zip file at the moment.
In the Assembly, there is a custom iproperty called "COMPONENT SUPPRESSION CHANGED".
When the Assembly file is opened, this iproperty is reset to 0.
If a component is manually suppressed, the iproperty is updated to 1.
But if the file is saved, closed and re-opened, the iproperty is reset but when the same component is re-activated, the iproperty is not updated to 1.
Here is the simple code I'm using in the example that I haven't been able to attach.
This code is triggered by the "After Open Document" event trigger.
MessageBox.Show("Resetting Values", "Title") iProperties.Value("Custom", "COMPONENT SUPPRESSION CHANGED") = 0
And this code is set to be triggered by the "Component Suppression Change" event trigger.
MessageBox.Show("Updating Change In Component Suppression Value", "Title") iProperties.Value("Custom", "COMPONENT SUPPRESSION CHANGED") = 1 InventorVb.DocumentUpdate()
P.S. I'm using Inventor Professional 2016.