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.
opDeleteBodies doesn't remove outline
sören_svensson
Member Posts: 21 ✭✭
Hi,
After creating a sketch in FS and (for example) extruding it, I remove the sketch with opDeleteBodies.
However, the outline (edge) of the sketch still remains.
What am I missing here?
You can see it in "Nuts & Bots Generator"
https://cad.onshape.com/documents/318189c1164cb057e78793b0/w/a9de37285f1c4300497923f1/e/7dc3f0e4317cacd3cf7d1863
After creating a sketch in FS and (for example) extruding it, I remove the sketch with opDeleteBodies.
However, the outline (edge) of the sketch still remains.
What am I missing here?
You can see it in "Nuts & Bots Generator"
https://cad.onshape.com/documents/318189c1164cb057e78793b0/w/a9de37285f1c4300497923f1/e/7dc3f0e4317cacd3cf7d1863
Tagged:
0
Best Answer
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565Nice-looking feature!
qSketchRegion will only return the surface bodies from the sketch, so that's all that got deleted.
To delete everything created by the sketch (wire bodies and surface bodies), you can instead use
qCreatedBy(id + "threadedRodSketch", EntityType.BODY)
5
Answers
qSketchRegion will only return the surface bodies from the sketch, so that's all that got deleted.
To delete everything created by the sketch (wire bodies and surface bodies), you can instead use
qCreatedBy(id + "threadedRodSketch", EntityType.BODY)
If anyone needs a bearing (ball, roller, needle, conical), you can check out my "Bearing Generator" feature too.