Share

GridSurface.CreateFromDEM(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.280

Syntax

C#

public static ObjectId CreateFromDEM(
	Database database,
	string DEMFileName
)

VB

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

C++

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

Reference

Was this information helpful?