Surface Class

The base class for TIN and grid surfaces and volume surfaces. This class exposes the methods and properties common to TIN and grid surfaces,
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    DisposableWrapper
      RXObject
        Drawable
          DBObject
            Entity
              Curve
                Entity
                  Autodesk.Civil.DatabaseServicesEntity
                    Autodesk.Civil.DatabaseServicesSurface
                      Autodesk.Civil.DatabaseServicesGridSurface
                      Autodesk.Civil.DatabaseServicesGridVolumeSurface
                      Autodesk.Civil.DatabaseServicesTinSurface
                      Autodesk.Civil.DatabaseServicesTinVolumeSurface

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public class Surface : Entity

The Surface type exposes the following members.

Properties
 NameDescription
Public propertyAnalysis Gets a SurfaceAnalysis object that exposes the surface analysis properties for the Surface.
Public propertyApplication Gets the Application. Not currently implemented.
(Inherited from Entity)
Public propertyAutoRebuild Gets or sets whether to rebuild the surface when surface definition is changed.
Public propertyBoundariesDefinition Gets the collection of boundaries associated with the Surface.
Public propertyBuildOptions Gets an object that encapsulates options applied to building or re-building a Surface.
Public propertyDescription Gets or sets the Entity object's description.
(Inherited from Entity)
Public propertyDisplayName Gets the Entity object's display name.
(Inherited from Entity)
Public propertyDocument Gets the Document. Not currently implemented.
(Inherited from Entity)
Public propertyFingerPrint Gets or sets FingerPrint of the Entity.
(Inherited from Entity)
Public propertyFolderId Gets the folder ObjectId of the Entity Returns ObjectId::Null if the Entity is located in root folder
(Inherited from Entity)
Public propertyCode exampleHasSnapshot Gets a boolean value that specifies whether the surface has a snapshot.
Public propertyIsCWSReferenceObject Gets whether the Entity is a Civil Worksharing reference object. A Civil Worksharing reference object is a Civil object shared to Shared Space. It is not editable. But it can be updated to the new version in the Shared Space.
(Inherited from Entity)
Public propertyIsCWSSourceObject Gets whether the Entity is a Civil Worksharing source object. A Civil Worksharing source object is a Civil object shared to Shared Space. It is editable and can be updated to Shared Space.
(Inherited from Entity)
Public propertyIsLevelOfDetailEnabled Gets or sets whether to reduced level of Detail.
Public propertyIsOutOfDate Gets whether this surface is out-of-date.
Public propertyIsPartialReferenceObject Gets whether the surface is partial reference surface.
(Inherited from Entity)
Public propertyIsReadOnlyReferenceObject Gets whether the Entity is a readonly reference object. A readonly reference object is either a data shortcut referece object or a Civil Worksharing reference object.
(Inherited from Entity)
Public propertyCode exampleIsReferencedSourceExisting For reference object (IsReferenceObject == true), it will try to get its source entity while opening a drawing. This indicates whether the reference object has source entity.
(Inherited from Entity)
Public propertyIsReferenceObject Gets whether the Entity is a reference object. A reference object is located in another drawing, and linked using a data shortcut or Vault. If the entity is native to the current drawing this property returns false; if it is being referenced via data shortcuts or AutoCAD Vault it returns true.
(Inherited from Entity)
Public propertyIsReferenceStale For reference objects (IsReferenceObject == true), gets whether the Entity object's reference is stale.
(Inherited from Entity)
Public propertyIsReferenceSubObject For reference objects (IsReferenceObject == true), gets whether the Entity is a reference subobject. For example, when iterating through the structure of a pipe network referenced from another drawing, this property is true for each entity.
(Inherited from Entity)
Public propertyIsReferenceValid For reference objects (IsReferenceObject == true), gets whether the Entity object's reference is valid.
(Inherited from Entity)
Public propertyIsSnapshotOutOfDate Gets whether the snapshot in the surface is out-of-date.
Public propertyIsUsed Gets whether the style is used by other objects in the current drawing.
(Inherited from Entity)
Public propertyIsVolumeSurface Gets whether the surface is a volume surface.
Public propertyLock Gets or sets whether the Civil 3D GUI shows this surface as locked.
Public propertyMasks Gets all the masks in the Surface.
Public propertyName Gets or sets the Entity object's name.
(Inherited from Entity)
Public propertyOperations Gets the operation list for the Surface.
Public propertyOriginationType Gets origination type which indicates the surface is created from a Corridor or Grading.
Public propertyPartialReferenceBoundaryManager Provides access to the manager for partial reference boundaries.
Public propertyShowToolTip Gets or sets whether to show tooltips for the Entity.
(Inherited from Entity)
Public propertyCode exampleStyleId Sets the Surface's style Id.
(Overrides EntityStyleId)
Public propertyStyleName Gets or sets the Entity object's style name.
(Inherited from Entity)
Top
Methods
 NameDescription
Public methodComputeFingerPrint Compute FingerPrint of the Entity.
(Inherited from Entity)
Public methodCode exampleCreateSnapshot Creates a snapshot that contains the current state of points and triangles resulting from previous Surface operations. A snapshot can improve the performance of Surface builds from subsequent operations.
Public methodExportToDEM(String, String, Double, ExportDetermineElevationType) Exports the Surface to a DEM file.
Public methodExportToDEM(String, String, Double, ExportDetermineElevationType, Boolean, Single) Exports the surface to a DEM file, with an optional custom value for null elevation.
Public methodFindDirectionAtXY Gets the direction of the Surface at the specified location (x, y).
Public methodFindElevationAtXY Gets the elevation of the Surface at the specified location (x, y).
Public methodFindPointsAlongLine Gets the points on the surface along the specified line segment.
Public methodFindSlopeAtXY Gets the slope of the Surface at the specified location (x, y).
Public methodCode exampleGetBoundedVolumes(Point3dCollection) Calculates the volume of an area defined by several points.
Public methodCode exampleGetBoundedVolumes(Point3dCollection, Double) Calculate the volume of an area defined by several points.
Public methodCode exampleGetGeneralProperties Gets the general properties of the surface.
Public methodGetIntersectionPoint Gets the intersection point with surface by the specified point and vector.
Public methodCode exampleGetReferenceInfo For Data Shortcut reference entity (IsReferenceObject == true), gets the entity's reference information.
(Inherited from Entity)
Public methodCode exampleRebuild Rebuilds the surface by processing all the operations one by one in the list.
Public methodCode exampleRebuildSnapshot Rebuilds the snapshot for the surface.
Public methodCode exampleRemoveSnapshot Removes the existing snapshot for the surface.
Top
Remarks
A surface is a three-dimensional geometric representation of an area of land, or, in the case of volume surfaces, is a difference or composite between two surface areas. A surface can be made up of triangles (TIN) or grids, which are created when the points that make up the surface data are connected.
See Also