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 get a derived part to automatically change based on existing variables

Hello! New to Onshape and trying to streamline some stuff. I have a Part that leverages some variables in one Part Studio and I'd like to Derive this part in another Part Studio. While inserting/Deriving the part works just fine, I'd like this part to dynamically get resized based on the same variables in the Part Studio it was inserted into.
How can I go about doing this or is there a better way? I know about Configuration variables, but these seem like they might be able to resize a Derived part based on values provided at insertion time, but I'd like to not have to define these at insertion and would simply like the Derived part to use the variables already defined.
Hope this makes sense! Thank you!
Best Answers
-
NeilCooke Moderator, Onshape Employees Posts: 5,845
You cannot do this with standard variables - create a configuration variable in the source part studio, then in the derived dialog you'll see an option to set the diameter (which can be linked to a variable in the target part studio, but it doesn't have to be).
Senior Director, Technical Services, EMEA2 -
daniel_melameth Member Posts: 9 ✭
@NeilCooke Upon further review, I was able to get this to work as you noted. Defining a Configuration variable, and actually using this Configuration variable in the source sketch, allowed this to work.
Thank you again!
0
Answers
Can you share your document as public and paste a link for others to see what your trying to do?
If I did this right, to simplify things I created an example at https://cad.onshape.com/documents/42e1f670d575e15bd17069ad/w/672b222169bbc3c8473e5214/e/5b32126a9804fcfb3247f126.
The cylinder is 40mm in diameter per the variable. I insert/derive this cylinder into the Derived Part Studio tab and it's still 40mm even though I have defined a variable in this tab where diameter is 10mm. Ideally, I'd like the derived part to "inherit"/read the variable defined in the local tab and adjust itself accordingly.
Hope this makes more sense.
Thanks.
You cannot do this with standard variables - create a configuration variable in the source part studio, then in the derived dialog you'll see an option to set the diameter (which can be linked to a variable in the target part studio, but it doesn't have to be).
@NeilCooke Thanks for the guidance. I gave this is a spin, but I must be doing something wrong. I created a Configuration variable in the source with Default and related values for the length, but, when I Derive this into the destination and specify a value in the popup for the Derived part, the size of the part is never changed regardless of whether I specify this manually or via a variable.
What am I missing?
Thank you.
@NeilCooke Upon further review, I was able to get this to work as you noted. Defining a Configuration variable, and actually using this Configuration variable in the source sketch, allowed this to work.
Thank you again!