AddLinearDimension

Adds a linear dimension to the document.

Syntax

rhinoscriptsyntax.AddLinearDimension ( start_point, end_point, point_on_dimension_line )

rhinoscript.dimension.AddLinearDimension ( start_point, end_point, point_on_dimension_line )

Parameters

start_point

Required.  3D point defining start of dimension.

end_point

Required.  3D point defining end of dimension.

point_on_dimension_line

Required.  3D point.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

points = rs.GetPoints(True, False, "Select 3 dimension points")

if points and len(points)>2:

    rs.AddLinearDimension( points[0], points[1], points[2] )

Also See

IsLeader

LeaderText