AddSweep2

Adds a surface created through profile curves that define the surface shape and two curves that define the surface edges. For more details on this method, see the Rhino help file for the Sweep2 command.

Syntax

rhinoscriptsyntax.AddSweep2 (rails, shapes, closed=False)

rhinoscript.surface.AddSweep2 (rails, shapes, closed=False)

Parameters

rails

Required.  Two Guids or Strings.  A list or tuple of identifying two rail curves.

shapes

Required.  List.  A list of Guids or strings identifying one or more shape, or cross section, curves.

closed

Optional.  Boolean.  If True, then create a closed surface, continuing the surface past the last curve around to the first curve. This option is only available after you select two cross-section curves.  The default value is False.

Returns

List

The identifiers of the new surface objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

rails = rs.GetObjects("Select two rail curve", rs.filter.curve)

if rails and len(rails)==2:

    shapes = rs.GetObjects("Select cross-section curves", rs.filter.curve)

    if shapes: rs.AddSweep2(rails, shapes)

Also See

AddSweep1

CurveDirectionsMatch

ReverseCurve