GridSurfaceCreateFromDEM(Database, String) Method

Creates a new instance of a GridSurface from a DEM file and adds it to the specified database.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId CreateFromDEM(
	Database database,
	string DEMFileName
)

Parameters

database  Database
The database where the new GridSurface is created.
DEMFileName  String
The path of the DEM file.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when the DEMFileName is empty.
SurfaceException Thrown when the create operation fails.
Remarks
The default surface style is applied to the new GridSurface object.
See Also