Raises or lowers the surface.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
SurfaceOperationRaise RaiseSurface(
	double deltaElevation
)
Visual Basic
Function RaiseSurface ( _
	deltaElevation As Double _
) As SurfaceOperationRaise
Visual C++
SurfaceOperationRaise^ RaiseSurface(
	double deltaElevation
)

Parameters

deltaElevation
Type: System..::..Double
The elevation delta. A positive value raises the elevation while a negative value lowers the elevation.

Examples

CopyC#
 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");
CopyVB.NET
1!ERROR: See log file!

See Also