Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to use if statements in CAM expressions?

2 REPLIES 2
Reply
Message 1 of 3
FrodoLoggins
456 Views, 2 Replies

Is it possible to use if statements in CAM expressions?

I want to make a roughing template that applies to 5 ZrN end mills (.5", .375", .25", etc.). I'd like the feedrate to update based off which tool I select.

 

Perfect world, I'd like to base the feedrate off the stepover percentage but I don't think that's possible.

- Time Magazine’s Person of the Year 2006
- Apple M1 Max rMBP A2485 // Latest MacOS // Latest Fusion
- Usually working off files uploaded to Fusion as: Step, STL, SLDPRT. If it matters ask me.
2 REPLIES 2
Message 2 of 3
jeff.pek
in reply to: FrodoLoggins

Hi -

Yes, you can have simple conditions in your expressions. Here's an example:

tool_type == 'drill' ? 4 * tool_diameter : 2 * tool_diameter

 

This means "if tool_type is 'drill' then use 4 times tool_diameter, otherwise use 2 times tool_diameter.

 

You can use parentheses and AND (&&) and OR (||) in your expression, and even nest them:

(x == 4 || x == 7) ? 16 : (x < 2 ? 7 : 13)

 

Jeff

Message 3 of 3
Anonymous
in reply to: jeff.pek

Check out this video for some examples of more advanced logic in CAM. 

 

https://www.youtube.com/watch?v=dFSekpMbCdo

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

Post to forums  

Autodesk Design & Make Report