A ruled face of a 3d solid or open shell.
Namespace:
Autodesk.Revit.DB
Assembly:
RevitAPI
(in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Syntax
Remarks
A ruled surface is created by sweeping a line between two profile curves or between a curve and a point (a point and a curve).
For details on the parameterization, refer to the documentation for
RuledSurface
.
Examples
Copy
C#
private void GetRuledFaceInfo(Face face)
{
RuledFace ruledFace = face as RuledFace;
if (null != ruledFace)
{
Curve curve = ruledFace.get_Curve(0);
XYZ point = ruledFace.get_Point(0);
}
}
Copy
VB.NET
Private Sub GetRuledFaceInfo(face As Face)
Dim ruledFace As RuledFace = TryCast(face, RuledFace)
If ruledFace IsNot Nothing Then
Dim curve As Curve = ruledFace.Curve(0)
Dim point As XYZ = ruledFace.Point(0)
End If
End Sub
Inheritance Hierarchy
System
Object
Autodesk.Revit.DB APIObject
Autodesk.Revit.DB GeometryObject
Autodesk.Revit.DB Face
Autodesk.Revit.DB RuledFace
Autodesk.Revit.DB APIObject
Autodesk.Revit.DB GeometryObject
Autodesk.Revit.DB Face
Autodesk.Revit.DB RuledFace