RhinoCommon API
InstanceDefinitionTableAdd Method (String, String, Point3d, GeometryBase, ObjectAttributes) |
Adds an instance definition to the instance definition table.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public int Add( string name, string description, Point3d basePoint, GeometryBase geometry, ObjectAttributes attributes )
Public Function Add ( name As String, description As String, basePoint As Point3d, geometry As GeometryBase, attributes As ObjectAttributes ) As Integer
Parameters
- name
- Type: SystemString
The definition name. - description
- Type: SystemString
The definition description. - basePoint
- Type: Rhino.GeometryPoint3d
A base point. - geometry
- Type: Rhino.GeometryGeometryBase
An element. - attributes
- Type: Rhino.DocObjectsObjectAttributes
An attribute.
Return Value
Type: Int32>=0 index of instance definition in the instance definition table. -1 on failure.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14