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.
use variable in assembly
I've been trying to use variable in assembly, but I'm not successful.
Who knows how can use a variable from part in the assembly?
Thank you
Best Answers
-
@mohammad_haji
If you have an idea or feature you would need in Onshape, create a ticket using feedback (?-menu in cad). You will then get email if/when it's implemented and more importantly Onshape can collectively get data on what we users need.
//rami5 -
Not if you uncheck the "Insert into all Parts Studios and Assemblies" checkbox. You can then manually choose exactly which variable(s) to import in any assembly.
0
Answers
-
Sorry variables only extend to PartStudios today.
To what end do you wish to use them? There may be another approach.
Cheers,
Owen S.
Business Systems and Configuration Controller
HWM-Water Ltd0 -
To use in unpaired or not direct related to or more parts in 2 different assemblies.
For example, relation between a cylinder bore to a lever in assembly. one number using for a 2 different type of calculation. Force & length.0 -
Why ca not use a variable number like this:
#X@Part1 ?0 -
@mohammad_haji
If you have an idea or feature you would need in Onshape, create a ticket using feedback (?-menu in cad). You will then get email if/when it's implemented and more importantly Onshape can collectively get data on what we users need.
//rami5 -
I'm modeling a dining table. I have a parametric variable called "reveal" that is used by other parametric variables that in turn constrain various parts, so it is needed in the Part Studio. However, I also need the parameter in Assembly ("offset" in "Fastened mate"), but as pointed out by @owen_sparks, parametric variables are not visible in Assembly.
I look at configuration variables, but I don't think it is applicable to my use case.
1 -
I would like to set the offset distance of many components to a variable so i do not have to visit all the connections to update the distances as things change.0
-
You can drive your design from the top with a Variable Studio - those variables can be used in Part Studios and Assemblies.Scott_Morris said:I would like to set the offset distance of many components to a variable so i do not have to visit all the connections to update the distances as things change.0 -
You can do this if you define your variable in a "variable studio"Scott_Morris said:I would like to set the offset distance of many components to a variable so i do not have to visit all the connections to update the distances as things change.1 -
@eric_pesty The problem with using a Variable Studio is the variables are shared across all tabs in the document.
0 -
Not if you uncheck the "Insert into all Parts Studios and Assemblies" checkbox. You can then manually choose exactly which variable(s) to import in any assembly.
0 -
Even though seven years have passed and so much has changed — new features, new updates, and all done by your successors — I really appreciate that you noticed my old question and took the time to reply. Thanks a lot!
1






