If statement issues

If statement issues

ubi.james13
Enthusiast Enthusiast
499 Views
4 Replies
Message 1 of 5

If statement issues

ubi.james13
Enthusiast
Enthusiast

Hi, have a family off parts and dependent on length they require different number of holes, below screen grab is from 

Fusion 360 Help | Parameters reference | Autodesk

 

ubijames13_1-1691506979687.png

 

 

I've basically cut and pasted in to my part then change parameter name & value to suit my needs but for some reason this will not work ?

 

ubijames13_3-1691507387841.png

 

0 Likes
Accepted solutions (1)
500 Views
4 Replies
Replies (4)
Message 2 of 5

g-andresen
Consultant
Consultant
Accepted solution

Hi,

check your equation

 

qty holes = if(total_lenght < 199 mm; 2; if(total_lenght < 1200 mm; 3; 4))   

 

günther

Message 3 of 5

ubi.james13
Enthusiast
Enthusiast

@g-andresen thank for your help, expression is now working ! Does this mean the example on web page is incorrect ? 

0 Likes
Message 4 of 5

g-andresen
Consultant
Consultant

Hi,


@ubi.james13 wrote:

 Does this mean the example on web page is incorrect ? 


Yes!

Take a  look here

 

günther

Message 5 of 5

HughesTooling
Consultant
Consultant

@Phil.E Can you take a look at the parameters help section for the if statement. The first example is correct but the bit highlighted in green has an "if" missing.

HughesTooling_0-1691837721815.png

 

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes