opDeleteBodies doesn't remove outline
sören_svensson
Member Posts: 24 ✭✭
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
-
Nice-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
-
Nice-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 -
Thanks, that fixed it!
If anyone needs a bearing (ball, roller, needle, conical), you can check out my "Bearing Generator" feature too.
1

