Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
thomas.larsen
349 Views, 2 Replies

Turn part On and Off

Hey

 

I'm pretty new on ETO, so bear with me.Smiley Happy

 

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

DDSThomas
2 REPLIES 2
Message 2 of 3

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



Chris Palmatier
Customer Success Engineer
Inventor Engineer-to-Order

Message 3 of 3

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

 

 

DDSThomas

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report