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

Rule for Component enable true or false

KenVaessen
Enthusiast

Rule for Component enable true or false

KenVaessen
Enthusiast
Enthusiast

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

 

0 Likes
Reply
Accepted solutions (1)
400 Views
1 Reply
Reply (1)

KenVaessen
Enthusiast
Enthusiast
Accepted solution

I've got it!

 

SyntaxEditor Code Snippet

    Component.InventorComponent("Verloop").Enabled = True

 

0 Likes