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 put a constraint on an extrusion ?
sébastien_roux
Member Posts: 1 ✭
Hi,
I'm new to OnShape and struggle a little with parmeters.
I manage to set constraints in a sketch like it's done in this tutorial. Then I want to extrude it and be able to set the depth of the extrusion as a constraint. How do you do that ?
Example :
I create a rectangle in a new sketch. I put constraints on width and height. Then I define another constraint, one corner of the rectangle begin the origin of the 3D workspace. This makes my rectangle black. Nice.
Then I extrude it to make it become a block. Let' say I extrude it by 1 mm. Fine. But how do I make this 1 mm become a constraint ?
Also.... Is there a way to define these dimensions (height, width of my rectangle and extrusion depth) as parameters in a specific windows ? In somewhere where I have a list of these paramteters and can resize the whole assembly just by modifying them ?
Thanks for your help !
Sébastien
I'm new to OnShape and struggle a little with parmeters.
I manage to set constraints in a sketch like it's done in this tutorial. Then I want to extrude it and be able to set the depth of the extrusion as a constraint. How do you do that ?
Example :
I create a rectangle in a new sketch. I put constraints on width and height. Then I define another constraint, one corner of the rectangle begin the origin of the 3D workspace. This makes my rectangle black. Nice.
Then I extrude it to make it become a block. Let' say I extrude it by 1 mm. Fine. But how do I make this 1 mm become a constraint ?
Also.... Is there a way to define these dimensions (height, width of my rectangle and extrusion depth) as parameters in a specific windows ? In somewhere where I have a list of these paramteters and can resize the whole assembly just by modifying them ?
Thanks for your help !
Sébastien
0
Best Answer
-
TimRice Member, Moderator, Onshape Employees Posts: 315As Bruce said, I would suggest using variables. Onshape's variable feature is extremely powerful and allows you to create some pretty neat geometry. Check out this tutoial to learn more:
https://www.onshape.com/cad-blog/direct-editing-with-variables
Tim Rice | User Experience | Support
Onshape, Inc.5
Answers
Constraints technically only apply to sketch geometry. Features as in your extrude are controled by sketches and parameters in the dialog box. No need to make your 1mm a constraint. It is already controlling thicness.
on your second question, use variables.
https://www.onshape.com/cad-blog/direct-editing-with-variables
Onshape, Inc.