File3dmInstanceDefinitionTableAdd Method (String, String, String, String, Point3d, IEnumerableGeometryBase, IEnumerableObjectAttributes) |
Adds an instance definition to the instance definition table.
Namespace:
Rhino.FileIO
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax public int Add(
string name,
string description,
string url,
string urlTag,
Point3d basePoint,
IEnumerable<GeometryBase> geometry,
IEnumerable<ObjectAttributes> attributes
)
Public Function Add (
name As String,
description As String,
url As String,
urlTag As String,
basePoint As Point3d,
geometry As IEnumerable(Of GeometryBase),
attributes As IEnumerable(Of ObjectAttributes)
) As Integer
Parameters
- name
- Type: SystemString
The definition name. - description
- Type: SystemString
The definition description. - url
- Type: SystemString
A URL or hyperlink. - urlTag
- Type: SystemString
A description of the URL or hyperlink. - basePoint
- Type: Rhino.GeometryPoint3d
A base point. - geometry
- Type: System.Collections.GenericIEnumerableGeometryBase
An array, a list or any enumerable set of geometry. - attributes
- Type: System.Collections.GenericIEnumerableObjectAttributes
An array, a list or any enumerable set of attributes.
Return Value
Type:
Int32
>=0 index of instance definition in the instance definition table. -1 on failure.
See Also