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
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the DEMFileName is empty. |
SurfaceException | Thrown when the create operation fails. |