Exports the Surface to a DEM file.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public void ExportToDEM( string fileName, string coordinateSystemCode, double gridSpacing, ExportDetermineElevationType deteElevBy )
VB
Public Sub ExportToDEM ( fileName As String, coordinateSystemCode As String, gridSpacing As Double, deteElevBy As ExportDetermineElevationType )
C++
public: void ExportToDEM( String^ fileName, String^ coordinateSystemCode, double gridSpacing, ExportDetermineElevationType deteElevBy )
Parameters
- fileName String
- The full file path of the exported file, whose file extension is either .dem for DEM file or .tif for GEOTIFF file.
- coordinateSystemCode String
- The coordinate zone of the exported surface, using a Map Zone name.
- gridSpacing Double
- The horizontal spacing for DEM profile points.
- deteElevBy ExportDetermineElevationType
- Specifies how the elevations of the DEM file are determined from the exported surface.
Exceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when :
|
InvalidOperationException | Thrown when there is an Internal error. |
Remarks
- If the target DEM file exists, its contents are deleted. If the method fails, the existing file will be empty.
- If the drawing has a coordinate system defined, the export uses that drawing coordinate system, and the coordinateSystemCode parameter is ignored.
- This version of ExportToDEM() does not specify a custom Null elevation.