Use value from paramter list

Use value from paramter list

Anonymous
Not applicable
510 Views
3 Replies
Message 1 of 4

Use value from paramter list

Anonymous
Not applicable

I need to use a value from multi-value paramter in a rule

 

If you open the attached part, open the rule: "Rule_Sliderail_Type", I've added a note/desription of what I want to happen

 

I need to pull the dimension from that, so that my sliderail changes diameter accordingly

 

 

 

 

0 Likes
Accepted solutions (1)
511 Views
3 Replies
Replies (3)
Message 2 of 4

HermJan.Otterman
Advisor
Advisor
Accepted solution

Hello,

 

can't yoy just do this:

 

SyntaxEditor Code Snippet

If Sliderail_Type = "1.5 Galvanized" Then
Feature.Color("Revolution - Sliderail - Up") = "Galvanized"
Feature.Color("Revolution - Sliderail - Down") = "Galvanized"
'USE VALUE 48.3 FROM Parameter "Sliderail_Diameter"
Sliderail_Diameter = 48.3 
ElseIf Sliderail_Type = "1.5 Stainless" Then
Feature.Color("Revolution - Sliderail - Up") = "Steel - Polished"
Feature.Color("Revolution - Sliderail - Down") = "Steel - Polished"
'USE VALUE 48.3 FROM Parameter "Sliderail_Diameter"
Sliderail_Diameter = 48.3 
ElseIf Sliderail_Type = "1.5 Plastic" Then
Feature.Color("Revolution - Sliderail - Up") = "Smooth - Red"
Feature.Color("Revolution - Sliderail - Down") = "Smooth - Red"
'USE VALUE 48.3 FROM Parameter "Sliderail_Diameter"
Sliderail_Diameter = 48.3 
ElseIf Sliderail_Type = "2.0 Galvanized" Then
Feature.Color("Revolution - Sliderail - Up") = "Galvanized"
Feature.Color("Revolution - Sliderail - Down") = "Galvanized"
'USE VALUE 60.3 FROM Parameter "Sliderail_Diameter"
Sliderail_Diameter = 60.3
ElseIf Sliderail_Type = "2.0 Plastic" Then
Feature.Color("Revolution - Sliderail - Up") = "Smooth - Red"
Feature.Color("Revolution - Sliderail - Down") = "Smooth - Red"
'USE VALUE 60.3 FROM Parameter "Sliderail_Diameter"
Sliderail_Diameter = 60.3
End If


iLogicVb.UpdateWhenDone = True
If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 3 of 4

Anonymous
Not applicable

Thank You

 

What does the following line do?

iLogicVb.UpdateWhenDone = True

0 Likes
Message 4 of 4

HermJan.Otterman
Advisor
Advisor

this line will do an Update of your model,

 

look in the iLogic snippest, (system), Document

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes