DuplicateEdgeCurves

Duplicates the edge curves of a surface or polysurface. For more information, see the Rhino help file for information on the DupEdge command.

Syntax

rhinoscriptsyntax.DuplicateEdgeCurves (object_id, select=False)

rhinoscript.surface.DuplicateEdgeCurves (object_id, select=False)

Parameters

object_id

Required.  String or Guid.  The identifier of the surface or polysurface object.

select

Optional.  Boolean.  Select the duplicated edge curves.  The default is not to select (False).

Returns

List

A list of Guids identifying the newly created curve objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select surface or polysurface", rs.filter.surface | rs.filter.polysurface)

if obj:

    rs.DuplicateEdgeCurves( obj, True )

    rs.DeleteObject( obj )

Also See

IsPolysurface

IsSurface