Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding methods for Parameters: Is it possible?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mnoreke
181 Views, 2 Replies

Adding methods for Parameters: Is it possible?

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
2 REPLIES 2
Message 2 of 3
BrianEkins
in reply to: mnoreke

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
Message 3 of 3
mnoreke
in reply to: BrianEkins

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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report