Click or drag to resize

ObjectTableAddInstanceObject Method (Int32, Transform, ObjectAttributes, HistoryRecord, Boolean)

Adds an instance object to the document.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Guid AddInstanceObject(
	int instanceDefinitionIndex,
	Transform instanceXform,
	ObjectAttributes attributes,
	HistoryRecord history,
	bool reference
)

Parameters

instanceDefinitionIndex
Type: SystemInt32
The index of the instance definition.
instanceXform
Type: Rhino.GeometryTransform
The instance transformation.
attributes
Type: Rhino.DocObjectsObjectAttributes
The attribues to apply to the instance object.
history
Type: Rhino.DocObjectsHistoryRecord
The history record associated with this instance object.
reference
Type: SystemBoolean
true if the object is from a reference file. Reference objects do not persist in archives.

Return Value

Type: Guid
A unique identifier for the object if successful. Guid.Empty it not successful.
Version Information

Rhino for Windows

Supported in: 6.27
See Also