Click or drag to resize

ObjectTableAddInstanceObject Method (Int32, Transform, ObjectAttributes)

Adds an instance object to the document.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public Guid AddInstanceObject(
	int instanceDefinitionIndex,
	Transform instanceXform,
	ObjectAttributes attributes
)

Parameters

instanceDefinitionIndex
Type: SystemInt32
The index of the instance definition.
instanceXform
Type: Rhino.GeometryTransform
The instance transformation.
attributes
Type: Rhino.DocObjectsObjectAttributes
The attributes to apply to the instance object.

Return Value

Type: Guid
A unique identifier for the object if successful. Guid.Empty it not successful.
See Also