cant seem to delete sketches
joshtargo
Member Posts: 695 EDU
Answers
-
I recall you need the sketch body, as
qCreatedBy(id, EntityType.BODY). I’m on mobile so I can’t double check right now.0 -
I tried that. Everything yields DELETE_SELECT_PART error, or something like it. Maybe I just log a bug
0 -
@joshtargo that's weird. This works just fine.
opDeleteBodies(context, id + "deleteBodies1", { "entities" : qCreatedBy(id + "sketch1", EntityType.BODY) });
Is it because you have the key asbodiesinstead ofentities?
https://cad.onshape.com/documents/9f1de13d502e8fff8e059f31/w/08fd20f671436a1abd2574d1/e/3cfd8a1bb87c69c5b21b64e9Ramon Yip | glassboard.com
1



