Announcements
Visit Fusion 360 Feedback Hub, the great way to connect to our Product, UX, and Research teams. See you there!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Advanced formulas or scripting in parameters

Advanced formulas or scripting in parameters

I would love an advanced formula option, something that integrates smoothly with the parameters option but provides much more advanced options.  For example, adding if->then statements as an option for parameter formulas.  This could be met in a robust way if you the advanced formula option used one of the supported scripting languages (and therefore access to its entire math library).   This would bridge the gap between the existing parameters capability and full scripting.

 

 

 

 

4 Comments
Anonymous
Not applicable

That would be great to have the ability to use conditional logic in the parameters.

blaisebarrette
Advocate

This would be really powerful!

if (cabinetHeight > 20 in){ shelfNumber ++;}

 

Anonymous
Not applicable

it would be great to have the usual fonctions: sin, log, abs, min, etc. All the fonctions of a spreadsheet.

Scoox
Collaborator

This would be great for fully automatic parametric models. The idea is to support nested conditional statements in formulas, similar to the way it works in MS Excel, which most of us are familiar with and does not require a programming background.

 

Example 1:

 

if(ShellHeight < 50 mm, 50 mm, 70 mm)

 

In this example, a particular drop-in part is only available in lengths 50 mm and 70 mm. Using conditional statements, the software can automatically use the correct length.

 

Example 2: Assume the following user parameters:

 

Aluminium := 1

Steel := 2

Material := Aluminium

 

Then, when modeling a bolt, we could enter the following formula as its length:

 

if(Material = Aluminium, 20 mm, 10 mm)

 

Thereby enabling Fusion 360 to use the appropriate bolt diameter based on material choice.

 

I will add to this feature request that the user parameters list needs to be redesigned to allow grouping (tree with expansible/collapsible nodes) and sorting. In its current incarnation it works fine when it's just a few user parameters, but it's clearly inadequate when more than 20 user are defined, especially because the list cannot be re-ordered.

 

In general, sorting stuff is something Fusion 360 needs to improve upon. Here's my recent feature request which addresses such issues: Allow manually reordering Appearance list

 

Cheers

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

Submit Idea