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 reference computed dimentions?
w_s856
Member Posts: 63 ✭✭
Context: https://cad.onshape.com/documents/43358821734fb73d04655e55/w/8ca61270631d958a341420cb/e/8a4842f7c0f2c7a0c7ed0ee8?renderMode=0&uiState=665487845d581a3dee7d001e
I am building my first Onshape object and so far the experience is great (I am coming from FreeCAD). I have a basic question about references: can I reference a dimension that computed by Oneshape? Specifically, I would like the separator in my box to be in the middle.


This means that I must set the constraint to a/2-b/2. Can I reference a and b? Or do I have to adjust as the dimensions change?
I am aware that I could set two constraints on the edges of the separator so that both are equal (constraints from the edge to the vertical edge of the box) - I do not know yet how to use construction lines but I will find this. I would like nevertheless to understand if references such as the nad b above exist in Oneshape
I am building my first Onshape object and so far the experience is great (I am coming from FreeCAD). I have a basic question about references: can I reference a dimension that computed by Oneshape? Specifically, I would like the separator in my box to be in the middle.

This means that I must set the constraint to a/2-b/2. Can I reference a and b? Or do I have to adjust as the dimensions change?
I am aware that I could set two constraints on the edges of the separator so that both are equal (constraints from the edge to the vertical edge of the box) - I do not know yet how to use construction lines but I will find this. I would like nevertheless to understand if references such as the nad b above exist in Oneshape
0
Best Answer
-
I added a line to sketch one with a dimension that uses a formula of a/2-b/2. Does this answer your question? - Scotty
https://cad.onshape.com/documents/b1135d01a12cb9d82157b92e/w/2e89661e741f08ef12be3826/e/b79e4a85ab6030995cf08156
0
Answers
-
There is a midpoint constraint you could use.Might be worth looking at the tutorialsEngineering textbook: https://hwh.stephenteacher.com/txtbook.html1
-
I added a line to sketch one with a dimension that uses a formula of a/2-b/2. Does this answer your question? - Scotty
https://cad.onshape.com/documents/b1135d01a12cb9d82157b92e/w/2e89661e741f08ef12be3826/e/b79e4a85ab6030995cf08156
0 -
Thank you. I cannot see the formula but I am sure this is what I found during last night session.robert_scott_jr_ said:I added a line to sketch one with a dimension that uses a formula of a/2-b/2. Does this answer your question? - Scotty
https://cad.onshape.com/documents/b1135d01a12cb9d82157b92e/w/2e89661e741f08ef12be3826/e/b79e4a85ab6030995cf08156
I must say Oneshape is great, I easily created what I needed without yet going through the tutorial (I wanted to check if what I knew was convertible)0 -
Yes, thank you. I was trying to quickly check how much of what I know is applicable in Oneshape. Turns out a lotSte_Wilson said:There is a midpoint constraint you could use.
Might be worth looking at the tutorials
This is really nice software.
I will now take the tutorial to check all the details but within one night I managed to reproduce an object, it is even better.
0 -
Double click the dimension to see the formula. - Scotty0
-
Yes, I tried that of course, but when double-clicking on any of the measurements (fx 39, fx 40, or fx 80) nothing happens. I guess "fx" stands for "formula" so it is certainly behindrobert_scott_jr_ said:Double click the dimension to see the formula. - Scotty
0
