Hi there.
I would like to calculate the depth of a drawer based on the hardware that can fit into the box containing the drawer.
The hardware comes in different sizes (250mm, 280mm, 300mm,...) and I need to use a conditional expression to 1st determine the hardware which can fit in the box and then calculate the depth of the drawer based on the hardware dimensions. In conventional language, I would use a "case of" or "if ... elsif... else" xpression to do so.
Can I emulate this in anyway within Fusion 360 ? I'm not sure we can create user defined function using the extension API in such a way they can be used in the Design environment.
In between, I will do it manually (which isn't a big deal either...).
Regards
Thierry
Solved! Go to Solution.
Solved by vladimir_michl. Go to Solution.
Solved by g-andresen. Go to Solution.
Hi,
For the arrangement of hinges in cabinets I used the workaround demonstrated in the screencast.
günther
You can mimick some of conditional expressions using sign, min, max and other math tricks. See:
https://www.cadforum.cz/en/how-to-use-conditional-parameter-values-in-fusion-360-tip12638
Vladimir Michl, www.arkance-systems.cz - www.cadforum.cz
Here is the final approach...
Each hardware has a nominal length (NL). Drawer will be smaller than that. And NL needs to fit in the box.
The approach works smoothly ! Thanks !
With that, I can automate drawer size calculation.
Have a good day,
Thierry