Exports the Surface to a DEM file.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public void ExportToDEM( string fileName, string coordinateSystemCode, double gridSpacing, ExportDetermineElevationType deteElevBy )
Visual Basic
Public Sub ExportToDEM ( _ fileName As String, _ coordinateSystemCode As String, _ gridSpacing As Double, _ deteElevBy As ExportDetermineElevationType _ )
Visual C++
public: void ExportToDEM( String^ fileName, String^ coordinateSystemCode, double gridSpacing, ExportDetermineElevationType deteElevBy )
Parameters
- fileName
- Type: System.String
The full file path of the DEM file.
- coordinateSystemCode
- Type: System.String
The coordinate zone of the exported surface, using a Map Zone name.
- gridSpacing
- Type: System.Double
The horizontal spacing for DEM profile points.
- deteElevBy
- Type: Autodesk.Civil.ExportDetermineElevationType
Specifies how the elevations of the DEM file are determined from the exported surface.
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.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when :
|
System.InvalidOperationException | Thrown when there is an Internal error. |