Deletes one or more objects from the document.
rhinoscriptsyntax.DeleteObjects (object_ids)
rhinoscript.object.DeleteObjects (object_ids)
object_ids |
Required. list. An array of strings or Guids identifying the objects to delete. |
Number |
The number of objects deleted if successful. |
import rhinoscriptsyntax as rs
object_ids = rs.GetObjects("Select objects to delete")
if object_ids: rs.DeleteObjects(object_ids)