ParaParam script for Fusion 360

ParaParam script for Fusion 360

hanskellner
Autodesk Autodesk
2,076 Views
7 Replies
Message 1 of 8

ParaParam script for Fusion 360

hanskellner
Autodesk
Autodesk

I've posted a new script.  This is used for parametrically driving a user parameter and performing an operation at each iteration.

 

64x64.png

 

https://github.com/hanskellner/Fusion360ParaParam

 

For example, with a user parameter it's possible to parametrically change a design.  With the script it's possible to iterate over a range of values that are applied to the user parameter and at each iteration, perform an operation such as export to STL.

 

Please take a look at the README for the script and the sample described for more details.

 

Cheers!



Hans Kellner
Senior Manager, Principal Engineer
2,077 Views
7 Replies
Replies (7)
Message 2 of 8

hanskellner
Autodesk
Autodesk

I've updated the ParaParam script.  The most significant change is support for loading a CSV for specifying multiple user parameters to change.

 

From the README:

 

A comma separated value (CSV) file may be used to specify which parameters and values to change. The format of the file is:

Parameter Name, Start Value, End Value, Step/Increment Value

For example, the following would modify the "Diameter" and "Height" parameters for all combinations of values:

Diameter,1,5,2
Height,1,3,0.5

https://github.com/hanskellner/Fusion360ParaParam

 

Cheers!



Hans Kellner
Senior Manager, Principal Engineer
0 Likes
Message 3 of 8

Anonymous
Not applicable

I'm in a situation where this script is ALMOST what I need, but not quite, and wondering if anyone can point me in the direction of something more appropriate.  I need to make several hundred variations of a part (exported as STLs for 3D printing), each with several sizes and angles that will change.  Ideally I'd be able to feed Fusion 360 a CSV where each row had a set of set of values, and Fusion would edit and output an STL for each row (or something like this).  My understanding is that this script will do multiples, but just increments between two values.  Does anyone know of a script around that does exactly what I'm looking for, or should I consider forking this one and seeing if I can modify it to fit my needs?

0 Likes
Message 4 of 8

hanskellner
Autodesk
Autodesk

I'm not familiar with a script that does what you describe.  But it should be rather easy to create one, based off the code in Para Param, that does what you want.



Hans Kellner
Senior Manager, Principal Engineer
0 Likes
Message 5 of 8

prainsberry
Autodesk
Autodesk

Hey I have been working on something that I think will do what you want.

 

There are two variations.

 

The first connects directly to google sheets.  You can then build the variations there.

https://github.com/tapnair/FusionSheeter

 

Also I have one that does something similar from a CSV (like you asked I believe) but it isn't as well developed or well tested:

https://github.com/tapnair/FusionCSVtoOutput

 

 

 



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 6 of 8

Anonymous
Not applicable

Wow, thanks so much, it looks like both of these could do exactly what I'm looking for.  Very glad I asked!

0 Likes
Message 7 of 8

hanskellner
Autodesk
Autodesk

Of course!  Sorry I'd forgotten about your scripts Patrick.



Hans Kellner
Senior Manager, Principal Engineer
0 Likes
Message 8 of 8

hanskellner
Autodesk
Autodesk

UPDATE: December 2023

 

Do you have a need to drive your Fusion 360 model parametrically through a specified set of values?  I just updated my Fusion 360 ParaParam script, porting it from Javascript to Python. Fixed issues, added features, updated documentation.

 

Cheers!

 

https://github.com/hanskellner/Fusion360ParaParam



Hans Kellner
Senior Manager, Principal Engineer