04-20-2020
01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-20-2020
01:55 AM
Hi @jamieking89
First create the constraints and name them something like "Plate1_constraint" and "Plate2_constraint"
Add this rule to your assembly:
If Component.IsActive("Plate1:1") = True And Component.IsActive("Plate2:1") = False Constraint.IsActive("Plate2_constraint") = False Constraint.IsActive("Plate1_constraint") = True ElseIf Component.IsActive("Plate1:1") = False And Component.IsActive("Plate2:1") = True Constraint.IsActive("Plate1_constraint") = False Constraint.IsActive("Plate2_constraint") = True Else Constraint.IsActive("Plate1_constraint") = False Constraint.IsActive("Plate2_constraint") = False End If ThisDoc.Document.Rebuild
I named the rule ActiveConstraint.
Add a trigger for the rule on Component Suppression Change.
Hope it helps ![]()
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website