DeleteObjects

Deletes one or more objects from the document.

Syntax

rhinoscriptsyntax.DeleteObjects (object_ids)

rhinoscript.object.DeleteObjects (object_ids)

Parameters

object_ids

Required.  list.  An array of strings or Guids identifying the objects to delete.

Returns

Number

The number of objects deleted if successful.

Example

import rhinoscriptsyntax as rs

object_ids = rs.GetObjects("Select objects to delete")

if object_ids: rs.DeleteObjects(object_ids)

Also See

DeleteObject