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.
How to use a variable value in an assembly configuration?
yves_ebnöther
Member Posts: 2 ✭
I am using a Variable Studio inside my Assembly. I would like to store variable values in the Assembly Configuration, and to calculate with them.
Example for a shelving configurator:
Assembly configuration "high", #AmountOfShelves = 6, #AmountOfWashers=4x#AmountOfShelves
Assembly configuration "low", #AmountOfShelves = 3, #AmountOfWashers=4x#AmountOfShelves
Apparently, this is not possible:
"Configuration variables cannot use formulas or reference other variables. Their values must be entered directly by the user"
I tried using a Configuration Variable, but their value cannot be stored in the configuration.
Many thanks in advance for your help! 😀 Yves from Switzerland
Answers
you can put the formula in the Assembly Pattern. that won't work?
You can reference a Variable Studio in an assembly, but you can't configure that value just for the assembly (like you would for a local Part Studio variable)
The best approach it to create a configured variable studio, that has your "High" values and your "Low" values. Then in the assembly, you reference those variables in your Assembly Pattern (or whatever you need the Var for), and you "Configure" the Variable Studio insertion for that assembly.
For example: https://bedfordstatics.onshape.com/documents/c2f83a9a4a02e6f105dd2589/w/8fbce4d36921099405c392b9/e/d9101bcc96f9f1ba18c461a5