Adds an aligned dimension object to the document. An aligned dimension is a linear dimension lined up with two points.
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)
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. |
Guid |
The identifier of the new object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
origin = 1, 1, 0
offset = 11, 5, 0
point = 1, 3, 0
rs.AddAlignedDimension( origin, offset, point )