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

public bool Replace( ObjRef objref, Line line )
Public Function Replace ( objref As ObjRef, line As Line ) As Boolean
Parameters
- objref
- Type: Rhino.DocObjectsObjRef
Reference to old object to be replaced. The object objref.Object() will be deleted. - line
- Type: Rhino.GeometryLine
new line to be added. The line is copied.
Return Value
Type: Booleantrue if successful.

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