iLogic Values Input

iLogic Values Input

rdiamond113
Enthusiast Enthusiast
656 Views
3 Replies
Message 1 of 4

iLogic Values Input

rdiamond113
Enthusiast
Enthusiast

All,

I am creating a rule that when I enter a pre-defined color in my assembly, the part number for one of the components will be updated to a color specific part number. My issue is I only have one pre-defined color, so what would I display in the rule for my ElseIf statement? Would it be "Variable" or "Multi-something" or "Any"? I've searched everywhere and cannot find what value I would use. Also I cannot use a Multi-Value list because it would be endless. Please Help!

Product Design Suite 2015, Windows 7, 64 bit

"Pushing the envelope, just to watch it bend"
0 Likes
Accepted solutions (1)
657 Views
3 Replies
Replies (3)
Message 2 of 4

VdVeek
Advocate
Advocate
Accepted solution

You don't need to use the ElseIf statement if you only got 2 options (Defined Color / All other colors).

Your code can look like this:

If color = "red" Then

' Change Partnumber to ....

Else

'Don't change Partnumber for all other colors

End If

 

When you want to define more colors it's easier to use a case statement.

Hope i understand your question correctly.

Rob.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
Message 3 of 4

rdiamond113
Enthusiast
Enthusiast

But I also need the part number to change for all other colors, so essentially I have two part numbers, one for a certain color and one for all others. Can I still use the Else statement and say Change Partnumber for all other colors?

Product Design Suite 2015, Windows 7, 64 bit

"Pushing the envelope, just to watch it bend"
0 Likes
Message 4 of 4

VdVeek
Advocate
Advocate

Yes you can still use the Else statement.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.