Deletes a single object from the document.
rhinoscriptsyntax.DeleteObject (object_id)
rhinoscript.object.DeleteObject (object_id)
object_id |
Required. String or Guid. The identifier of the object to delete. |
Boolean |
True or false indicating success or failure. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select object to delete")
if id: rs.DeleteObject(id)