IF Length parameter

IF Length parameter

mbiAK7WZ
Contributor Contributor
688 Views
8 Replies
Message 1 of 9

IF Length parameter

mbiAK7WZ
Contributor
Contributor

Hello again. 

 

I am currently making a family, and have problems with the IF parameter on the length. I need the paratmeter ''Altan bredde'' to have the length, 3290mm, 3380mm and so on up to 4500mm, but i cant get it to work and looked at many different sites to get to know how it can be done 

 

So far i have tried '' IF(length 3200mm, 3290mm, 3380mm) and IF(Altan bredde 3200mm, 3290mm, 3380mm) and IF(length < 3200mm, 3290mm, 3380mm) and IF(Altan bredde < 3200mm, 3290mm, 3380mm) 

 

I hope you can help

 

I have link the file here to. 

0 Likes
Accepted solutions (2)
689 Views
8 Replies
Replies (8)
Message 2 of 9

mbiAK7WZ
Contributor
Contributor

The file is attached here

0 Likes
Message 3 of 9

ToanDN
Consultant
Consultant

I don't see Length parameter in your family.

0 Likes
Message 4 of 9

mbiAK7WZ
Contributor
Contributor
Altan bredde, altan dybde should be length parameter, if i change the dimensions on them it changes the drawing, im far from done with parameters, but i need to get If length parameter on the dimensions i mentioned.

If you have a solution to make the parameter the way you are thinking, then i am open for it

Thanks
0 Likes
Message 5 of 9

ToanDN
Consultant
Consultant

Let's say, if you input the value 3320, do you want the length to become 3290 or 3380?

0 Likes
Message 6 of 9

mbiAK7WZ
Contributor
Contributor
3380
0 Likes
Message 7 of 9

ToanDN
Consultant
Consultant
Accepted solution

Add Length_Input parameter.  Your formula for Altan Bredde should be like this:

 

if(or(Length_Input<3200,Length_Input=3200), 3200,

if(or(Length_Input>3200,Length_Input<3290,Length_Input=3290),3290,

if(or(Length_Input>3290,Length_Input<3380,Length_Input=3380),3380, 

 

...

 

4500)))

 

The ... is for you to continue to develop until it reaches 4500.

 

ToanDN_0-1663319718633.png

 

 

By the way, your family is super heavy.

0 Likes
Message 8 of 9

mbiAK7WZ
Contributor
Contributor

Skærmbillede 2022-09-16 112916.png

 it makes this messege when i put in the parameter

0 Likes
Message 9 of 9

ToanDN
Consultant
Consultant
Accepted solution

See my revised formula. Yours is missing the last value 4500 so the syntax is incomplete.  copy paste ithe one below to yours.

 

 

 

if(or(Length_Input<3200,Length_Input=3200), 3200,if(or(Length_Input>3200,Length_Input<3290,Length_Input=3290),3290,if(or(Length_Input>3290,Length_Input<3380,Length_Input=3380),3380, 4500)))

0 Likes