Rule for Component enable true or false

Rule for Component enable true or false

KenVaessen
Enthusiast Enthusiast
431 Views
1 Reply
Message 1 of 2

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
Accepted solutions (1)
432 Views
1 Reply
Reply (1)
Message 2 of 2

KenVaessen
Enthusiast
Enthusiast
Accepted solution

I've got it!

 

SyntaxEditor Code Snippet

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

 

0 Likes