ObjectTable.Replace Method (ObjRef, Surface)

ObjectTableReplace Method (ObjRef, Surface)

Replaces one object with new surface object.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool Replace(
	ObjRef objref,
	Surface surface
)
Public Function Replace ( 
	objref As ObjRef,
	surface As Surface
) As Boolean

Parameters

objref
Type: Rhino.DocObjectsObjRef
reference to old object to be replaced. The objref.Object() will be deleted.
surface
Type: Rhino.GeometrySurface
new surface to be added A duplicate of the surface is added to the Rhino model.

Return Value

Type: Boolean
true if successful.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also