Click or drag to resize

File3dmInstanceDefinitionTableAdd Method (String, String, Point3d, IEnumerableGeometryBase)

Adds an instance definition to the instance definition table.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int Add(
	string name,
	string description,
	Point3d basePoint,
	IEnumerable<GeometryBase> geometry
)

Parameters

name
Type: SystemString
The definition name.
description
Type: SystemString
The definition description.
basePoint
Type: Rhino.GeometryPoint3d
A base point.
geometry
Type: System.Collections.GenericIEnumerableGeometryBase
An array, a list or any enumerable set of geometry.

Return Value

Type: Int32
>=0 index of instance definition in the instance definition table. -1 on failure.
Version Information

Rhino for Windows

Supported in: 6.20
See Also