Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multi-Value List Not in Order

2 REPLIES 2
Reply
Message 1 of 3
rfletcher
764 Views, 2 Replies

Multi-Value List Not in Order

I am trying to create a form, so that my designers can pick their parameters when they first start a new part. 

 

For this form I have created a multi-valued parameter for them to select from.

 

My issue is, why does Inventor not list fractions in the correct order.

 

What I would like to see:

 

1/8"

3/16"

1/4"

5/16"

3/8"

7/16"

1/2"

9/16"

5/8"

11/16"

3/4"

13/16"

7/8"

15/16"

1"

 

What Inventor lists:

 

1"

1/2"

1/4"

11/16"

13/16"

15/16"

3/8"

3/16"

5/8"

5/16"

7/8"

7/16"

9/16"

 

Is there a way to get Inventor to list these parameters in order of value?

 

Thanks in advance,

Randall

2 REPLIES 2
Message 2 of 3
ryaanj
in reply to: rfletcher

I second this question.  Inventor is ordering the numbers according to the digit values, not actual whole values.  This makes no sense when you use the parameter on a form and get a radio button list that jumps from 1 to 10, then back down to 2.  Any ideas on changing this?

Message 3 of 3
dsowle
in reply to: rfletcher

I know this was a while ago, I was having the same problem in version 2014.

I added this illogic rule to my part.  

 

MultiValue.SetList("Size", "1/8""", "3/16""", "1/4""", "5/16""", "3/8""", "7/16""", "1/2""", "9/16""", "5/8""", "11/16""", "3/4""", "13/16""", "7/8""", "15/16""", "1""")

It works, seems to force the Parameter's (named "Size") Multi-Value list to list as listed in the code.

 

Can this be done without illogic?

 

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

Post to forums  

Autodesk Design & Make Report