Creates a Surface object coincident with the surface of revolution defined by a coordinate frame and a profile curve.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.0.0.420)
Since:
2017
Syntax
Visual Basic |
---|
Public Shared Function Create ( _
frameOfReference As Frame, _
profileCurve As Curve _
) As Surface |
Visual C++ |
---|
public:
static Surface^ Create(
Frame^ frameOfReference,
Curve^ profileCurve
) |
Parameters
- frameOfReference
- Type: Autodesk.Revit.DB..::..Frame
frameOfReference is an orthonormal frame that defines a local coordinate system for the surface of revolution.
- The frame can be "right-handed" or "left-handed".
- The origin of the frame is the base of point of the axis of revolution.
- The BasisZ of the frame is 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 the xz plane of the frame.
- It lies on the right side of the axis.
- Only the end points of the profile curve can touch the axis.
Return Value
The created surface. Note that this surface may not be of type RevolvedSurface.
Remarks
Exceptions
See Also