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.
delete a sketch
adamohern
Posts: 216 PRO
If I create a sketch using newSketchOnPlane(), how do I delete it?
0
Comments
-
You can use opDeleteBodies and pass a qCreatedBy(id + "whateverYourSketchIdIs") query to itIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
-
Ah, looks like opDeleteBodies() will do the trick. It seems semantically odd that sketches would be considered bodies, but I guess it makes sense. False alarm.0
-
Wow you're fast.ilya_baran said:You can use opDeleteBodies and pass a qCreatedBy(id + "whateverYourSketchIdIs") query to it0 -
-
It's just strange nomenclature is all. It's perfectly fine in terms of functionality, I guess I would just expect that class of object to be called an "object" or something. The word "body" in my mind usually does not include one-dimensional or two-dimensional geometry. It's fine, I just didn't find it intuitive.0


