ExtrudeSurface

Creates a surface or solid by extruding straight along a path curve.

Syntax

rhinoscriptsyntax.ExtrudeSurface (surface, curve, cap=True)

rhinoscript.surface.ExtrudeSurface (surface, curve, cap=True)

Parameters

Parameters

surface

Required.  String or guid.  The identifier of the surface object to extrude.

curve

Required.  String or guid.  The identifier of the path curve.

cap

Optional.  Boolean.  Extrusion is capped at both ends to make a closed polysurface. The default value is True.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surface = rs.AddSrfPt([(0,0,0), (5,0,0), (5,5,0), (0,5,0)])

curve = rs.AddLine((5,0,0), (10,0,10))

rs.ExtrudeSurface(surface, curve)

Also See

ExtrudeCurve

ExtrudeCurvePoint

ExtrudeCurveStraight

ExtrudeCurveTapered