Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
BEST APPROACH AT GENERATING MULTIPLE DESIGN VARIATIONS BASED ON A VARIABLE-CONSTRAINED PART STUDIO
fluvio_lobo_fenoglietto
Member Posts: 36 PRO
Hello,
I need some advice on how to approach the following idea.
Given a Part Studio and a single solid defined by a number of variables, I want to automatically generate variations of said solid and export them all as .STLs or .STEPs
In more detail...
My current logic follows (high level):
My best guess to do this;
I look forward anyone's time, help and feedback!
Again, I am just looking for guidance on feasibility before getting my hands dirty.
Thank you,
Figure --------------------- ;
I need some advice on how to approach the following idea.
Given a Part Studio and a single solid defined by a number of variables, I want to automatically generate variations of said solid and export them all as .STLs or .STEPs
In more detail...
- Imagine a hollow cylinder defined by 3 variables (inner radius, outer radius, and depth) [Figure]
- I need an app or FatureScript that generates variants of set cylinder by changing the values of the 3 variables
My current logic follows (high level):
- Create a variable-constrained solid in a Part Studio
- Create a FeatureScript that reads the variables of the part studio, creates a new solid with a variation of said variables
My best guess to do this;
- Create a variable-constrained solid in a Part Studio
- Create an external app that: (1) duplicates the original Part Studio, (2) executes a FeatureScript that alters the variables of the solid within the Part Studio, and (3) Exports all of the Part Studios
I look forward anyone's time, help and feedback!
Again, I am just looking for guidance on feasibility before getting my hands dirty.
Thank you,
Figure --------------------- ;
Tagged:
0
Comments
That said, does this really need to be automated? How many permutations are you trying to export? If it's a manageable number, I would just use configurations and export manually. Alternatively, if you don't need individual files, you can insert multiple configurations of the same part into an assembly and export the assembly.
As for configuring variables, if the variables can only have certain values, those values can be configured as a dropdown list. If the variables can be any value, then use a configured variable. Below is an part studio with examples of several types of configuration inputs.
https://cad.onshape.com/documents/57acdfaae4b005c413ed9b6f/w/3fd585a46d3af1b3ba413c53/e/b02ec721136c6121c1a02cc1
https://cad.onshape.com/documents/7cdcfcfdefc81485592c83b1
You can then export as individual parts
IR for AS/NZS 1100
A manual version of this can be found here:
https://helioztechnologies.com/onshape
This example shows how the API can drive Onshape configurations.