Prompts the user to pick one or more surface or polysurface edge curves to duplicate.
rhinoscriptsyntax.GetEdgeCurves (message=None, min_count=1, max_count=0, select=False)
rhinoscript.userinterface.GetEdgeCurves (message=None, min_count=1, max_count=0, select=False)
message |
Optional. String. A prompt or message. |
min_count |
Optional. Number. The minimum number of edges to select. The default number is 1. |
max_count |
Optional. Number. The maximum number of edges to select. If max_count is 0, then the user must press enter to finish selection. If max_count is -1, then selection stops as soon as there are at least min_count edges selected. If min_count > 0, then the picking stops when there are max_count edges. The default number is 0. |
select |
Optional. Boolean. Select the duplicated edge curves. The default operation is not to select duplicated edge curves (False). |
List |
A list that contains tuples of edge information if successful. The tuple of edge information will contain the following:
|
||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
edges = rs.GetEdgeCurves()
if edges:
for edgeinfo in edges:
print "Curve Id =", edgeinfo[0]
print "Parent Id =", edgeinfo[1]
print "Pick point =", edgeinfo[2]