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.
Configurations as Variables
famadorian
Member Posts: 390 ✭✭✭
Can configurations be used as variables?
For example, if I have a cabinet height of X, can I define a drawer as X/3?
For example, if I have a cabinet height of X, can I define a drawer as X/3?
Tagged:
0
Best Answer
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565An alternative suggestion to @john_mcclary 's which still lets you use a single table:
- Add a variable feature to your Part Studio, name it "length"
- Right click the variable value > click Configure by "Dimensions"
- Assign values to the new variable's column as you've done to the Sketch 1 column above
- Now, you can use "#length" with those values anywhere in the Part Studio
5
Answers
How can I reference the 800mm?
I want something like variable(800mm)/#drawers
Give it some initial values and ranges
Now you can reference it anywhere in the part studio with the name shown
And you can change its value from above the tree
The table style configuration you have shown is not a variable. It is the current value of the dimension you have configured, and it cannot be read directly.
- Add a variable feature to your Part Studio, name it "length"
- Right click the variable value > click Configure by "Dimensions"
- Assign values to the new variable's column as you've done to the Sketch 1 column above
- Now, you can use "#length" with those values anywhere in the Part Studio
John is right that in Onshape, you can use multiple configuration inputs to achieve a more flexible design. If these dimensions are independent, and if you want a part with any dimensions to be insertable into an assembly, then his solution with multiple inputs of "Length", "Width", etc. will work better overall.