- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
@dutt.thakar wrote:
There is a question from my end, let's assume you have two components that are connected with one constraint, and you want one of that component to be suppressed, now as you know, in Inventor Mate:1 is shared between two components, if you run an iLogic rule that actually checks if the component is suppressed or not and if it is it will suppress its a constraint, but as Mate:1, in this case, is shared and the second component is not suppressed, so the rule will not suppress the constraint.
Think about it and share your thoughts,
No need to assume when we can simply test. I created an assembly containing three cubes in a row. The first one is placed and grounded at origin, the others are constrained to the previous one. When I suppress the middle one (which is constrained to both others) , its constraints are not suppressed. However, I can suppress the constraints manually, which means it should also be possible by iLogic. I tested this with the posted code and the constraints can be suppressed (whatever status of the occurrence on the other end of the constraint).
It also showed me that some constraints that should be suppressed were not suppressed when the code was finished. What if I told you the fix is to remove the loop that un-suppresses the constraints when the occurrence is not suppressed?
Spoiler: the suppressed occurrence is processed before the un-suppressed ones that it is constrained to.
So first the constraints are suppressed, but later-on they are un-suppressed again.