Gets the Terrain properties of the surface.

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

Syntax

C#
TerrainSurfaceProperties GetTerrainProperties()
Visual Basic
Function GetTerrainProperties As TerrainSurfaceProperties
Visual C++
TerrainSurfaceProperties^ GetTerrainProperties()

Examples

CopyC#
 1// Setup: creates a new, random surface
 2// 
 3TinSurface surface = CreateRandomSurface("Example Surface");
 4
 5// Get terrain properties and print out the terrain stats:
 6TerrainSurfaceProperties terrainProperties;
 7terrainProperties = surface.GetTerrainProperties();
 8write(String.Format("Surface terrain statistics: \n - Min grade/slope:{0} \n - Max grade/slope:{1}"
 9    + "\n - Mean grade/slope:{2} \n - 2D Area:{3} \n - 3D Area:{4}",
10
11    terrainProperties.MinimumGradeOrSlope,
12    terrainProperties.MaximumGradeOrSlope,
13    terrainProperties.MeanGradeOrSlope,
14    terrainProperties.SurfaceArea2D,
15    terrainProperties.SurfaceArea3D));
CopyVB.NET
1!ERROR: See log file!

See Also