Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
KenVaessen
398 Views, 1 Reply

Rule for Component enable true or false

This is my first post on this Forum. Can somebody help me with this Rule. I want the Part "Verloop" Enabled if 

If Parameter("MASTER", "standpijp_diameter") = 125 

 

and I want this function off if I chose Else.

 

This is what I've got so far

 

SyntaxEditor Code Snippet

If Parameter("MASTER", "standpijp_diameter") = 125 Then
    Component.Visible("Verloop") = True
    Component.InventorComponent("Verloop").BOMStructure = BOMStructureEnum.kDefaultBOMStructure  'Sets BOM Structure to Default (Includes on BOM)
    
    Constraint.IsActive("Mate:13") = True
    Constraint.IsActive("Flush:23") = True
    Constraint.IsActive("Mate:14") = True
    Constraint.IsActive("Mate:15") = True
    Constraint.IsActive("Flush:24") = True
    Constraint.IsActive("Flush:26") = False
    Constraint.IsActive("Mate:19") = False

Else
    Component.Visible("Verloop") = False
    Component.InventorComponent("Verloop").BOMStructure = BOMStructureEnum.kReferenceBOMStructure  'Sets BOM Structure to Reference (Includes on BOM)
    
    Constraint.IsActive("Mate:13") = False
    Constraint.IsActive("Flush:23") = False
    Constraint.IsActive("Mate:14") = False
    Constraint.IsActive("Mate:15") = False
    Constraint.IsActive("Flush:24") = False
    Constraint.IsActive("Flush:26") = True
    Constraint.IsActive("Mate:19") = True
End If