Pauses for user input of a point constrained to an infinite line.
rhinoscript.userinterface.GetPointOnLine (message, start_point, end_point, track=True)
message |
Required. String. A prompt or message. |
start_point |
Required. List of 3 numbers or Point3d. The starting point of the line. |
end_point |
Required. List of 3 numbers or Point3d. The ending point of the line. |
track |
Optional. Boolean. Draw a tracking line from start_point. If omitted, a tracking line is drawn (True). |
Point3d |
The 3-D point selected by the user if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
plane = rs.ViewCPlane()
start = plane.Origin
end = start + plane.Normal
point = rs.GetPointOnLine("Pick location", start, end)