Hey
I'm pretty new on ETO, so bear with me.
I'm trying to make a rule where I select a TYPE, if I select the Type Called MO21F I want a part called TUNNION, if I make one of the 2 other choices I want NULLLDESIGN.
But I only can select between the Types, my role can't change between TRUE or FALSE
Here's my rule:
<%%Category("Type"),_
%%Prompt("Vælg Type"),_
%%Choices("MO21, MO21F, MO21T")> _
ParameterRule type AsName = MO21F
Rule typevalg? As Boolean
If (type = MO21F) Then
Return True
Else
Return False
End If
End Rule
Please help
Child trunnion As (If typevalg? Then :Trunnion Else :nullDesign)
End Child
If I understand you correctly, I'd suggest using a rule to specify the design name, then reference that rule in the child rule. Something like this:
Rule childDesign As Name
Dim result as Name
If (some test) Then
result = :Design1
ElseIf (some other test) Then
result = :Design2
Else
result = :NullDesign
End If
Return result
End Rule
Child MyChild As childDesign
... parameters
End Child
Hey
Thanks for the answer, and I will try to use your proposal.
In plain text, this is what I want.
I have a assembly, in 3 different types
MO21
MO21T
MO21F
I want to have a parameter, where I can select one of the types.
If I choose MO21F I want a part called
Trunnion to be inserted, if I choose one of the 2 other types, the Trunnion part should not be inserted