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.
"general" variables between parts studio
franco_otaola
Member Posts: 23 ✭
hello,
i am doing some complex assembly with a lots of parts and i would like to make some variables general, what i meen with general, that it exist in all the parts studio that i am doing, i could do the two parts in same tab that way i could use the variable but what i would like is to do it in different tabs and at the same time have some variables that i can modify in a generaly way that would modify all the parts.
also i use the post to ask something else that is really simple, is there any way to "separate" or lable features table like divide plane 1, extrution 1 and sketch 2 toughether (putting a different color or a line between them and the other features?
thanks!!!
i am doing some complex assembly with a lots of parts and i would like to make some variables general, what i meen with general, that it exist in all the parts studio that i am doing, i could do the two parts in same tab that way i could use the variable but what i would like is to do it in different tabs and at the same time have some variables that i can modify in a generaly way that would modify all the parts.
also i use the post to ask something else that is really simple, is there any way to "separate" or lable features table like divide plane 1, extrution 1 and sketch 2 toughether (putting a different color or a line between them and the other features?
thanks!!!
1
Best Answers
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,211This is called "global" variables. They are not yet implemented in Onshape. There are two ways I know of to work around this:
1. Make a part studio with a sketch comprised of line segments that represent your variables, derive it in every other part studio and use the lengths for your variables. This is ugly and awkward.
2. Write a custom feature that sets the variables and use it as the first feature in every part studio you need. You can use the code here and just change the VALUES: https://cad.onshape.com/documents/8d0fd07c1493468baa468b99/w/e50845bda2bb873a51f63716/e/77760f311fa9bec69acb40a1
The awkwardness is that you have to go to the feature studio to see what the variables are.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc4 -
grochino Moderator, Onshape Employees, User Group Leader Posts: 44Hi @franco_otaola I think what you're looking for are Global Variables. Check out this post from the Improvement Requests category:
https://forum.onshape.com/discussion/4027/global-variables
There is also a post for Feature Tree Folders. To help better organize the feature list.
https://forum.onshape.com/discussion/1842/feature-tree-folders
Feel free to Vote Up these requests and add your thoughts about these potential features to the comments.
2
Answers
1. Make a part studio with a sketch comprised of line segments that represent your variables, derive it in every other part studio and use the lengths for your variables. This is ugly and awkward.
2. Write a custom feature that sets the variables and use it as the first feature in every part studio you need. You can use the code here and just change the VALUES: https://cad.onshape.com/documents/8d0fd07c1493468baa468b99/w/e50845bda2bb873a51f63716/e/77760f311fa9bec69acb40a1
The awkwardness is that you have to go to the feature studio to see what the variables are.
https://forum.onshape.com/discussion/4027/global-variables
There is also a post for Feature Tree Folders. To help better organize the feature list.
https://forum.onshape.com/discussion/1842/feature-tree-folders
Feel free to Vote Up these requests and add your thoughts about these potential features to the comments.
https://www.onshape.com/cadwolf-partner-spotlight-10-05-17Paet
https://appstore.onshape.com/apps/Utilities/JWF64IPEH32MCCUOU3SPZHOWFTE5MNA6EPNSW6A=/description