SurfaceExportToDEM(String, String, Double, ExportDetermineElevationType, Boolean, Single) Method |
Exports the surface to a DEM file, with an optional custom value for null elevation.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic void ExportToDEM(
string fileName,
string coordinateSystemCode,
double gridSpacing,
ExportDetermineElevationType deteElevBy,
bool useCustomNullElevationation,
float customNullElevation
)
Public Sub ExportToDEM (
fileName As String,
coordinateSystemCode As String,
gridSpacing As Double,
deteElevBy As ExportDetermineElevationType,
useCustomNullElevationation As Boolean,
customNullElevation As Single
)
public:
void ExportToDEM(
String^ fileName,
String^ coordinateSystemCode,
double gridSpacing,
ExportDetermineElevationType deteElevBy,
bool useCustomNullElevationation,
float customNullElevation
)
Parameters
- fileName String
- The full file path of the DEM file.
- coordinateSystemCode String
- The coordinate zone of the exported surface, using a Map Zone name.
- gridSpacing Double
- The horizontal spacing for the DEM profile points.
- deteElevBy ExportDetermineElevationType
- Specifies how the elevations of DEM file are determined from the exported surface.
- useCustomNullElevationation Boolean
- Specifies whether to use a custom value for null elevation.
- customNullElevation Single
- Specifies the default value for null elevation.
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The fileName is empty.
- The coordinateSystemCode is empty.
- The gridSpacing is less than or equal to 0.0.
- The customNullElevation is less than or equal to 0.0 when useCustomNullElevationation is true.
- The coordinateSystemCode is not supported.
- The target DEM file already exists and is not writable.
|
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.
See Also