Raises or lowers the surface.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public SurfaceOperationRaise RaiseSurface( double deltaElevation )
VB
Public Function RaiseSurface ( deltaElevation As Double ) As SurfaceOperationRaise
C++
public: virtual SurfaceOperationRaise^ RaiseSurface( double deltaElevation ) sealed
Parameters
- deltaElevation Double
- The elevation delta. A positive value raises the elevation while a negative value lowers the elevation.
Return Value
SurfaceOperationRaiseImplements
ITerrainSurfaceRaiseSurface(Double)Example
C#
1// Setup: create a new, random surface 2// 3ObjectId surfaceId = TinSurface.Create(_acaddoc.Database, "Example Surface"); 4TinSurface surface = surfaceId.GetObject(OpenMode.ForWrite) as TinSurface; 5Point3dGenerator p3dgen = new Point3dGenerator(); 6Point3dCollection locations = p3dgen.AsPoint3dCollection(); 7surface.AddVertices(locations); 8 9// Get the surface mean elevation, then raise the surface, and 10// check that the elevation has been raised. 11// 12GeneralSurfaceProperties surfaceProperties = surface.GetGeneralProperties(); 13write("Surface mean elevation before raise: " + surfaceProperties.MeanElevation + "\n"); 14double deltaElevation = 10.0; 15surface.RaiseSurface(deltaElevation); 16surfaceProperties = surface.GetGeneralProperties(); 17write("Surface mean elevation after raise: " + surfaceProperties.MeanElevation + "\n");
VB
1!ERROR: See log file!