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.
New to parametrics: how do I make a basic cube controlled by one dimensional value?
russ_taber
Member Posts: 11 ✭✭
Made a centerpoint rectangle. set a side dimension to 50mm. added an equal constraint to a perpendicular side.
Now I want it to extrude to the set 50mm dimension. If I change the dimension, the cube will scale equally.
I must be overthinking it. Best practices?
Now I want it to extrude to the set 50mm dimension. If I change the dimension, the cube will scale equally.
I must be overthinking it. Best practices?
Tagged:
0
Best Answers
-
traveler_hauptman Member, OS Professional, Mentor, Developers Posts: 419 PROBest practice would be to use equations to establish the relationship. Equations functionality is not released yet. Until then, you have to use a hack.
While I wouldn't typically use a hack for production work, it can help you get more familiar with how things (currently) work. Points for the most creative one....
1 -
traveler_hauptman Member, OS Professional, Mentor, Developers Posts: 419 PROThe non-creative version: https://cad.onshape.com/documents/2149057fbe6c410e9a3e4746/w/bb0d56bee3f14f61ae5d0173/e/d258de12d5194b3e95fff205
5 -
traveler_hauptman Member, OS Professional, Mentor, Developers Posts: 419 PROWhen you project from one plane to a perpendicular one, all the projections end up in a line... but that's ok because we only need the one line.
Coincident mates on the shared edge work fine as well.
5 -
jakeramsley Member, Moderator, Onshape Employees, Developers, csevp Posts: 661I would use a sweep with the system as is.
1. Sketch a center-point rectangle and make the lengths equal to be a square. Dimension the square, this will be the dimension to drive the cube size.
2. On an orthogonal plane, sketch a line from the center of the rectangle that is perpendicular to the rectangular face. Select this line and choose it to be equal that of the rectangular line.
3. Sweep the square face along the perpendicular line. This should create a cube.
From here you can go back to sketch 1 and edit the dimension. The cube should update accordingly.Jake RamsleyDirector of Quality Engineering & Release Manager onshape.com7
Answers
While I wouldn't typically use a hack for production work, it can help you get more familiar with how things (currently) work. Points for the most creative one....
Coincident mates on the shared edge work fine as well.
1. Sketch a center-point rectangle and make the lengths equal to be a square. Dimension the square, this will be the dimension to drive the cube size.
2. On an orthogonal plane, sketch a line from the center of the rectangle that is perpendicular to the rectangular face. Select this line and choose it to be equal that of the rectangular line.
3. Sweep the square face along the perpendicular line. This should create a cube.
From here you can go back to sketch 1 and edit the dimension. The cube should update accordingly.
Indaer -- Aircraft Lifecycle Solutions