sorting values

sorting values

Anonymous
Not applicable
249 Views
1 Reply
Message 1 of 2

sorting values

Anonymous
Not applicable

Hi,

 

Is there a way to sort a certain number of values like like (-2,-1,1,2) and then take the middel 2 values and use them furter in ilogic?

i can't seem to find a command for this.

The values come from parameters. that change so they are variable.

 

I also posted this here https://forums.autodesk.com/t5/inventor-forum/sorting/m-p/6949688#M635484

But they recommended to poste my question here.

 

Thanks in advance

0 Likes
250 Views
1 Reply
Reply (1)
Message 2 of 2

HermJan.Otterman
Advisor
Advisor

Hello Lowie,

 

 

Look at this post from yesterday,

 

https://forums.autodesk.com/t5/inventor-customization/determine-largest-and-second-largest-parameter...

 

Rhasel had a nice solution.

I Think you can use the same.

If you Always have 6 values, you need the 3e and 4e

keep in mind that it starts counting at zero so 3 = Value(2) and 4 = Value(3)

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