AddAlignedDimension

Adds an aligned dimension object to the document. An aligned dimension is a linear dimension lined up with two points.

Syntax

rhinoscriptsyntax.AddAlignedDimension (start_point, end_point, point_on_dimension_line, style=None)

rhinoscript.dimension.AddAlignedDimension (start_point, end_point, point_on_dimension_line, style=None)

Parameters

start

Required.  The origin, or first, point of the dimension.

end

Required.  The offset, or second, point of the dimension.

point_on_dimension_line

Required.  The location point of the dimension line.

style

Optional.  The name of the dimension style.  If omitted, the current dimension style is used.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

origin = 1, 1, 0

offset = 11, 5, 0

point = 1, 3, 0

rs.AddAlignedDimension( origin, offset, point )

Also See

IsAlignedDimension