RuledSurface Class


Ruled Surface Class

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). Input curve(s) must be bounded or have natural bounds.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB Surface
Autodesk.Revit.DB RuledSurface

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public class RuledSurface : Surface

The RuledSurface type exposes the following members.

Properties
Name Description
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from Surface )
Public property OrientationMatchesParametricOrientation Indicates whether this Surface's orientation is the same as or opposite to its parametric orientation.
(Inherited from Surface )
Top
Methods
Name Description
Public method Static member Create(Curve, Curve) Creates a Surface object coincident with the ruled surface joining two bounded generating curves.
Public method Static member Create(Curve, XYZ) Creates a Surface object coincident with the ruled surface joining a bounded generating curve to a point.
Public method Dispose
(Inherited from Surface )
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetBoundingBoxUV Gets the UV bounding box of the surface.
(Inherited from Surface )
Public method GetFirstProfileCurve Returns a copy of the first profile curve if it is set.
Public method GetFirstProfilePoint If a point was used to define the first profile, returns a copy of that point.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetSecondProfileCurve Returns a copy of the second profile curve if it is set.
Public method GetSecondProfilePoint If a point was used to define the second profile, returns a copy of that point.
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method HasFirstProfilePoint Checks if a point was used to define the first profile.
Public method HasSecondProfilePoint Checks if a point was used to define the second profile.
Public method IsCoincidentWith Determine if two surfaces are coincident (ignoring Envelopes). For an affirmative answer, the surfaces must have the same type (e.g., two planes).
(Inherited from Surface )
Public method Project Project a 3D point orthogonally onto a surface (to find the nearest point). Throws InvalidOperationException if the projection fails.
(Inherited from Surface )
Public method ProjectWithGuessPoint Project a 3D point orthogonally onto a surface (to find the nearest point). This method is meant to be used when a good approximate solution for the projection is available. Throws InvalidOperationException if the projection fails.
(Inherited from Surface )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
Both curves are evaluated in normalized parameters [0, 1] The parametric equations of a ruled surface are:
  • Curve C1 and curve C2 : S(u, v) = C1(u) + v * (C2(u) - C1(u));
  • Point P1 and curve C2 : S(u, v) = P1 + v * (C2(u) - P1);
  • Curve C1 and point P2 : S(u, v) = C1(u) + v * (P2 - C1(u));
The point/point case is not allowed as that would define a degenerate ruled surface.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →