AddSweep1

Adds a surface created through profile curves that define the surface shape and one curve that defines a surface edge. For more details on this method, see the Rhino help file for the Sweep1 command.

Syntax

rhinoscriptsyntax.AddSweep1 (rail, shapes, closed=False)

rhinoscript.surface.AddSweep1 (rail, shapes, closed=False)

Parameters

rail

Required.  Guid or String.  The identifier of the rail curve.

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

rail = rs.GetObject("Select rail curve", rs.filter.curve)

if rail:

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

    if shapes: rs.AddSweep1( rail, shapes )

Also See

AddSweep2

CurveDirectionsMatch

ReverseCurve