Adding methods for Parameters: Is it possible?

Adding methods for Parameters: Is it possible?

mnoreke
Enthusiast Enthusiast
484 Views
2 Replies
Message 1 of 3

Adding methods for Parameters: Is it possible?

mnoreke
Enthusiast
Enthusiast

Hello!

I have a project where I need sets of parameters that are dependent upon a master variable to select the version of the data.

Example:

Variable Name Normal Value Alternate 1 Alternate 2

Variable NamePrimary Data SetAlternate Data Set 1Alternate Data Set 2
Scale10.330.25
Scale Index123
Length10033.325
Material Thickness532

 

What I would like is to create a few method signature that can be used in the parameters window similar to these:

CalculateScale(Scale, 100); // For Length
SelectScaleValue(ScaleIndex, [5,3,2]); // For Material Thickness, array of values

Is this possible, and if so, where do I look for reference materials on creating such methods?

Thanks in advance for any and all help!

========================
CAD Enthusiast
Former Developer
0 Likes
Accepted solutions (1)
485 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

I'm not sure I fully understand what you want to do but Fusion doesn't support defining custom functions to use with parameters. You're limited to the set of built-in functions.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

mnoreke
Enthusiast
Enthusiast

That answers my question Brian. I guess I need to create an app that manages my data set and sets the variables as needed when I change scale.

Thanks. 🙂

========================
CAD Enthusiast
Former Developer
0 Likes