ObjectTable.ReplaceInstanceObject Method (Guid, Int32)

ObjectTableReplaceInstanceObject Method (Guid, Int32)

Replaces the underlying instance definition of an instance object.

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

Parameters

objectId
Type: SystemGuid
Id of the instance object to be replaced.
instanceDefinitionIndex
Type: SystemInt32
The index of the new instance definition to use.

Return Value

Type: Boolean
true if successful.
See Also