Creates a Surface object coincident with the surface of revolution defined by an axis, a profile curve,
and start and end angles of revolution.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.1.1.1)
Since:
2017
Syntax
Visual Basic |
---|
Public Shared Function Create ( _
axisBasePoint As XYZ, _
axisDirection As XYZ, _
profileCurve As Curve, _
startAngle As Double, _
endAngle As Double _
) As Surface |
Parameters
- axisBasePoint
- Type: Autodesk.Revit.DB..::..XYZ
The base point of the axis of revolution. Expected to lie within the Revit design limits IsWithinLengthLimits(XYZ).
- axisDirection
- Type: Autodesk.Revit.DB..::..XYZ
The direction of the axis.
- profileCurve
- Type: Autodesk.Revit.DB..::..Curve
The profile curve, which should satisfy the following conditions:
- It is bounded and non-degenerate.
- It is co-planar with the axis of revolution.
- It lies on only one side of the axis.
- Only the end points of the profile curve can touch the axis.
- startAngle
- Type: System..::..Double
Start angle of rotation.
The angles are measured around the axis of revolution, using the right-hand rule.
The profile curve is at the zero angle.
- endAngle
- Type: System..::..Double
End angle of rotation.
Start angle must be less than end angle and their difference must be less than or equal to two times PI.
Return Value
The created surface. Note that this surface may not be of type RevolvedSurface.
Remarks
Exceptions
See Also