ObjectTable.AddBox Method (Box, ObjectAttributes, HistoryRecord, Boolean)

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)
Syntax
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: Guid
The ID.
Version Information

Rhino for Windows

Supported in: 6.8
See Also