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.
Can you reference one dimension in a sketch when entering the value for another dimension?
brian_brady
Member, Developers Posts: 505 EDU
in General
Say I have a simple rectangle. I always want its height to be .4 times its width. Can I do this directly in a sketch? I am particularly looking at situations where I don't explicitly know what the width of the rectangle will be since it is generated by referencing other geometry when it is constructed. This is kind of like using variables, but created on the fly. In Creo (Pro/E) I would look at a dimension's identifier (i.e. d3) and make the other dimension 0.4*d3
Brian
Brian
0
Best Answer
-
Jason_S Moderator, Onshape Employees, Developers Posts: 213Hi Brian,
No, you cannot do this directly in a sketch. We don't set 'names' of sketches at the moment. I was a long time SolidWorks user and I was used to entering, for example, "0.25*d3@sketch4" in many of my sketches. Feel free to go to here to add your vote to the improvement request for this.
This isn't a solution, but this Measure Distance custom feature allows you to assign an existing distance to a feature, different from our normal Variable workflow. https://cad.onshape.com/documents/572b968ce4b07aad125dbaaf/v/08093fef6c4d4f330f24dd19/e/b40df94c5081948fe8195e81. Give it a try!
Best!
JasonSupport & QA6
Answers
No, you cannot do this directly in a sketch. We don't set 'names' of sketches at the moment. I was a long time SolidWorks user and I was used to entering, for example, "0.25*d3@sketch4" in many of my sketches. Feel free to go to here to add your vote to the improvement request for this.
This isn't a solution, but this Measure Distance custom feature allows you to assign an existing distance to a feature, different from our normal Variable workflow. https://cad.onshape.com/documents/572b968ce4b07aad125dbaaf/v/08093fef6c4d4f330f24dd19/e/b40df94c5081948fe8195e81. Give it a try!
Best!
Jason
Here's an example: https://cad.onshape.com/documents/4d46f0309ed541160c60804a/w/23b848821b3ef7439c5657bb/e/1e3a2060562fd41eb43fd561
Brian
https://forum.onshape.com/discussion/15006/improvements-to-onshape-december-10th-2020/p1