Adds a linear dimension to the document.
rhinoscriptsyntax.AddLinearDimension ( start_point, end_point, point_on_dimension_line )
rhinoscript.dimension.AddLinearDimension ( start_point, end_point, point_on_dimension_line )
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. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
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] )