SurfaceDefinitionDEMFilesAddDEMFile(String, String, Boolean, Double) Method |
Adds DEM file data to a surface with custom null elevation and coordinate system information.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic SurfaceOperationAddDEMFile AddDEMFile(
string filename,
string coordinateSystemCode,
bool useCustomNullElevation,
double customeNullElevation
)
Public Function AddDEMFile (
filename As String,
coordinateSystemCode As String,
useCustomNullElevation As Boolean,
customeNullElevation As Double
) As SurfaceOperationAddDEMFile
public:
SurfaceOperationAddDEMFile^ AddDEMFile(
String^ filename,
String^ coordinateSystemCode,
bool useCustomNullElevation,
double customeNullElevation
)
Parameters
- filename String
- The name and path of an existing DEM file.
- coordinateSystemCode String
- The coordinate system code to transform the data in the DEM file. For a GridSurface, this parameter must be an empty string "".
- useCustomNullElevation Boolean
- Specifies whether use custom null elevation.
- customeNullElevation Double
- The value to use for null elevation.
Return Value
SurfaceOperationAddDEMFile
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The Dem file is invalid.
- The coordinateSystemCode is invalid.
|
InvalidOperationException |
Thrown when user specifies a coordinateSystemCode value other than "" for the GridSurface.
|
Remarks- If the DEM file coordinate system is different from the current coordinate system of the drawing, and you are adding it to a TIN surface, you can specify a coordinate system for the DEM file. The coordinate system you specify for the DEM file should match the data defined in the DEM file itself.
- DEM files cannot be transformed for grid surfaces.
- The coordinateSystemCode value "" means that no transformation is needed.
See Also