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 create a slot in Onshape
traveler_hauptman
Member, OS Professional, Mentor, Developers Posts: 419 PRO
Just a quick tip that I think is fun and useful, especially for those new to Onshape.
Slots are needed in a lot of situations and can be sketched a lot of ways. If you pick the wrong way, it's tedious and will have you cursing if you have to do more than one.
Here's the quickest and easiest way I have found.
1) Draw a rectangle where you want the slot. If the slot is not horizontal or vertical then you will need to delete the horizontal constraint that Onshape adds to the rectangle.
2) Dimension the rectangle with the slot width and center-to-center length.
3) Draw a circle on each end of the slot/rectangle using the automatic constraints. (hover over the center of the rectangle line segment to get the automatic midpoint constraint, click to start the circle, hover over the end of the line to get the automatic endpoint constraint, click to end the circle).
Done!
That's it. No arcs, no lines, no tangent constraints.
Onshape handles overlapping contours pretty well but there is a bug that requires a workaround in some cases. If the circles overlap each other Onshape will create an island, use the trim tool to delete one of the overlapping segments. If you are fastidious, use the trim tool to delete all the internal segments, but this is only cosmetic and not necessary.
Here's the example in action: https://cad.onshape.com/documents/3153ae4573de436ebaf2f28e/w/1d4852760b65401a926a7476/e/4587c5457c394b529c198dcb
If you have other favorite approaches, post them here.
Slots are needed in a lot of situations and can be sketched a lot of ways. If you pick the wrong way, it's tedious and will have you cursing if you have to do more than one.
Here's the quickest and easiest way I have found.
1) Draw a rectangle where you want the slot. If the slot is not horizontal or vertical then you will need to delete the horizontal constraint that Onshape adds to the rectangle.
2) Dimension the rectangle with the slot width and center-to-center length.
3) Draw a circle on each end of the slot/rectangle using the automatic constraints. (hover over the center of the rectangle line segment to get the automatic midpoint constraint, click to start the circle, hover over the end of the line to get the automatic endpoint constraint, click to end the circle).
Done!
That's it. No arcs, no lines, no tangent constraints.
Onshape handles overlapping contours pretty well but there is a bug that requires a workaround in some cases. If the circles overlap each other Onshape will create an island, use the trim tool to delete one of the overlapping segments. If you are fastidious, use the trim tool to delete all the internal segments, but this is only cosmetic and not necessary.
Here's the example in action: https://cad.onshape.com/documents/3153ae4573de436ebaf2f28e/w/1d4852760b65401a926a7476/e/4587c5457c394b529c198dcb
If you have other favorite approaches, post them here.
Tagged:
0
Comments
thanks, Jake
You guys should add that info to the help!
Now I can grab one of the line endpoints and "rotate" the slot close to where I want.
https://cad.onshape.com/help/Content/revolve.htm
Just draw a line where you want the center of the slot and go.