RhinoCommon API
ObjectTableReplace Method (ObjRef, Brep) |
Replaces one object with new brep object.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool Replace( ObjRef objref, Brep brep )
Public Function Replace ( objref As ObjRef, brep As Brep ) As Boolean
Parameters
- objref
- Type: Rhino.DocObjectsObjRef
reference to old object to be replaced. The objref.Object() will be deleted. - brep
- Type: Rhino.GeometryBrep
new brep to be added A duplicate of the brep is added to the Rhino model.
Return Value
Type: Booleantrue if successful.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8