2021 Class
Changes 0
C

RuledSurface

Description:
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.
Remarks:
Both curves are evaluated in normalized parameters [0, 1] The parametric equations of a ruled surface are: C1 != 0 and C2 != 0 : S(u, v) = C1(u) + v * (C2(u) - C1(u)); C2 == 0 and C1 != 0 : S(u, v) = P1 + v * (C2(u) - P1); C1 == 0 and C2 != 0 : S(u, v) = C1(u) + v * (P2 - C1(u)); C1 == 0 and C2 == 0 - is not allowed as that would define a degenerate ruled surface.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Surface
    Autodesk.Revit.DB.RuledSurface
public class RuledSurface : Surface
Name Return Type Description Inherited From
M Create(Curve, Curve) Surface Creates a Surface object coincident with the ruled surface joining two bounded generating curves.
M Create(Curve, XYZ) Surface Creates a Surface object coincident with the ruled surface joining a bounded generating curve to a point.
M GetFirstProfileCurve() nullNothingnullptr Returns a copy of the first profile curve if it is set.
M GetFirstProfilePoint() XYZ If a point was used to define the first profile, returns a copy of that point.
M GetSecondProfileCurve() nullNothingnullptr Returns a copy of the second profile curve if it is set.
M GetSecondProfilePoint() XYZ If a point was used to define the second profile, returns a copy of that point.
M HasFirstProfilePoint() bool Checks if a point was used to define the first profile.
M HasSecondProfilePoint() bool Checks if a point was used to define the second profile.
M Dispose() None Releases all resources used by the Surface
M GetBoundingBoxUV() BoundingBoxUV Gets the UV bounding box of the surface. Surface
M Project(XYZ, UV%, Double%) None Project a 3D point orthogonally onto a surface (to find the nearest point). Throws InvalidOperationException if the projection fails. Surface
M ProjectWithGuessPoint(XYZ, UV, UV%, Double%) None 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. Surface
Name Return Type Description Inherited From
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity. Surface
P OrientationMatchesParametricOrientation bool Indicates whether this Surface's orientation is the same as or opposite to its parametric orientation. Surface