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.
cant seem to delete sketches
joshtargo
Member Posts: 574 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.I tried that. Everything yields DELETE_SELECT_PART error, or something like it. Maybe I just log a bug
@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 as
bodiesinstead ofentities?https://cad.onshape.com/documents/9f1de13d502e8fff8e059f31/w/08fd20f671436a1abd2574d1/e/3cfd8a1bb87c69c5b21b64e9
Ramon Yip | glassboard.com
Ohh, it must be it, well spotted @ry_gb!
thank you @ry_gb can't believe i missed it. another win for the forum.