CreateFromDEM Method (Database, String)

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.4.208.0

Syntax

C#

public static ObjectId CreateFromDEM(
	Database database,
	string DEMFileName
)

Visual Basic

Public Shared Function CreateFromDEM ( _
	database As Database, _
	DEMFileName As String _
) As ObjectId

Visual C++

public:
static ObjectId CreateFromDEM(
	Database^ database, 
	String^ DEMFileName
)

Parameters

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

Remarks

The default surface style is applied to the new GridSurface object.

Exceptions

ExceptionCondition
System.ArgumentException Thrown when the DEMFileName is empty.
Autodesk.Civil.SurfaceException Thrown when the create operation fails.

See Also