GetEdgeCurves

Prompts the user to pick one or more surface or polysurface edge curves to duplicate.

Syntax

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)

Parameters

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).

Returns

List

A list that contains tuples of edge information if successful.  The tuple of edge information will contain the following:

Element

Description

0

Guid.  The identifier of the newly duplicated edge curve.

1

Guid.  The identifier of the parent surface or polysurface.

2

Point3d.  The selection point.

None

If not successful, or on error.

Example

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]

Also See

DuplicateEdgeCurves