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.
Variable
D_7
Member Posts: 12 ✭✭
Comments
HWM-Water Ltd
A good workaround for now is to write a custom feature which sets all the variables, and then call that custom feature at the beginning of each part studio:
https://cad.onshape.com/documents/4bcc69a118838dd41e979713/w/19539881356ff2f22ff15dd8/e/5fca1275e609277a3b90e253
HWM-Water Ltd
Actually I think Onshape's approach is a better method:
Because it is a feature, you can move it down your history tree, or add multiple featurescripts, and configure part studios by just suppressing/unsuppressing the global variable features.
Because they are like any other variable. you can override each variable independently at the part studio level by defining a local variable with the same name, then having it below the global feature in the tree.
I do this for sheet metal often, I'll have 2 variables (thickness & bendradius) then insert them before a sheet-metal feature, then I can quickly modify all the sheet-metal in a project by just removing an override, or dragging around the feature higher in the tree to influence more parts, or modifying the featurescripts.
example:
https://cad.onshape.com/documents/ad3a9824a02b9066da33b369/w/bb566cc2750ad4ccc29f90ce/e/41bd476940542832f1fcb98c