Creates a Surface object coincident with the ruled surface joining two bounded generating curves.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static Surface Create( Curve profileCurve1, Curve profileCurve2 )
Parameters
- profileCurve1 Curve
- The first profile curve; must be bounded and non-degenerate.
- profileCurve2 Curve
- The second profile curve; must be bounded and non-degenerate.
Return Value
SurfaceThe created surface. Note that this surface may not be of type RuledSurf.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The input profileCurve1 is not bound. -or- The profileCurve1 is degenerate (its length is too close to zero). -or- The input profileCurve2 is not bound. -or- The profileCurve2 is degenerate (its length is too close to zero). |
ArgumentNullException | A non-optional argument was null |