RhinoCommon API
ObjectTableAdd Method (GeometryBase, ObjectAttributes) |
Adds geometry that is not further specified.
This is meant, for example, to handle addition of sets of different geometrical entities.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0

public Guid Add( GeometryBase geometry, ObjectAttributes attributes )
Public Function Add ( geometry As GeometryBase, attributes As ObjectAttributes ) As Guid
Parameters
- geometry
- Type: Rhino.GeometryGeometryBase
The base geometry. This cannot be null. - attributes
- Type: Rhino.DocObjectsObjectAttributes
The object attributes. This can be null.
Return Value
Type: GuidThe new object ID on success.

Exception | Condition |
---|---|
ArgumentNullException | If geometry is null. |
