Duplicates the edge curves of a surface or polysurface. For more information, see the Rhino help file for information on the DupEdge command.
rhinoscriptsyntax.DuplicateEdgeCurves (object_id, select=False)
rhinoscript.surface.DuplicateEdgeCurves (object_id, select=False)
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). |
List |
A list of Guids identifying the newly created curve objects if successful. |
None |
If not successful, or on error. |
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 )