Share

Surface Class

A mathematical representation of a surface.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.Surface
    More

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)

Syntax

C#

public class Surface : IDisposable

The Surface type exposes the following members.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyOrientationMatchesParametricOrientation Indicates whether this Surface's orientation is the same as or opposite to its parametric orientation.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the Surface
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetBoundingBoxUV Gets the UV bounding box of the surface.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodProject Project a 3D point orthogonally onto a surface (to find the nearest point). Throws InvalidOperationException if the projection fails.
Public methodProjectWithGuessPoint 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.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

Remarks

This geometric object is not bounded by edges or edge loops. A bounded surface obtained from a Revit element will be represented by a Face instead.

See Also

Reference

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.Surface
    Autodesk.Revit.DB.ConicalSurface
    Autodesk.Revit.DB.CylindricalSurface
    Autodesk.Revit.DB.HermiteSurface
    Autodesk.Revit.DB.OffsetSurface
    Autodesk.Revit.DB.Plane
    Autodesk.Revit.DB.RevolvedSurface
    Autodesk.Revit.DB.RuledSurface

Was this information helpful?