Click or drag to resize

ObjectTableAddLinearDimension Method (LinearDimension, ObjectAttributes, HistoryRecord, Boolean)

Adds a linear dimension object to the document.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Guid AddLinearDimension(
	LinearDimension dimension,
	ObjectAttributes attributes,
	HistoryRecord history,
	bool reference
)

Parameters

dimension
Type: Rhino.GeometryLinearDimension
Dimension object to add.
attributes
Type: Rhino.DocObjectsObjectAttributes
Attributes to apply to dimension.
history
Type: Rhino.DocObjectsHistoryRecord
Object history to save.
reference
Type: SystemBoolean
If reference, then object will not be saved into the 3dm file.

Return Value

Type: Guid
The Guid of the newly added object or Guid.Empty on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.0
See Also