Pauses for user input of an angle.
rhinoscriptsyntax.GetAngle (point=None, reference_point=None, default_angle_degrees=0, message=None)
rhinoscript.userinterface.GetAngle (point=None, reference_point=None, default_angle_degrees=0, message=None)
point |
Optional. Point3d. The starting, or base, point. |
reference_point |
Optional. Point3d. If specified, the reference angle is calculated from it and the base point. |
default_angle_degrees |
Optional. Number. A default angle value specified in degrees. |
message |
Optional. String. A prompt or message. |
Number |
The angle in degrees if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
point = rs.GetPoint("Base point")
if point:
reference = rs.GetPoint("Reference point", point)
if reference:
angle = rs.GetAngle(point, reference)
if angle!=None: print "Angle:", angle