RhinoCommon API
ObjectTableAddBox Method (Box, ObjectAttributes, HistoryRecord, Boolean) |
Adds a box to the object table, as an extrusion.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public Guid AddBox( Box box, ObjectAttributes attributes, HistoryRecord history, bool reference )
Public Function AddBox ( box As Box, attributes As ObjectAttributes, history As HistoryRecord, reference As Boolean ) As Guid
Parameters
- box
- Type: Rhino.GeometryBox
The box. - attributes
- Type: Rhino.DocObjectsObjectAttributes
Attributes that will be linked with the surface object. - history
- Type: Rhino.DocObjectsHistoryRecord
History data records. - reference
- Type: SystemBoolean
If a reference, object will not be saved in the document.
Return Value
Type: GuidThe ID.

Rhino for Windows
Supported in: 6.8