ObjectTable.ReplaceInstanceObject Method (ObjRef, Int32)

ObjectTableReplaceInstanceObject Method (ObjRef, Int32)

Replaces the underlying instance definition of an instance object.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool ReplaceInstanceObject(
	ObjRef objref,
	int instanceDefinitionIndex
)
Public Function ReplaceInstanceObject ( 
	objref As ObjRef,
	instanceDefinitionIndex As Integer
) As Boolean

Parameters

objref
Type: Rhino.DocObjectsObjRef
Reference to the instance object to be replaced. The objref.Object() will be deleted.
instanceDefinitionIndex
Type: SystemInt32
The index of the new instance definition to use.

Return Value

Type: Boolean
true if successful.
Version Information

Rhino for Windows

Supported in: 6.14
See Also