Parameters
- fileName
- The file to export the elevation profile to
Exception | Description |
---|---|
System.ArgumentNullException | fileName cannot be null. |
System.ArgumentException | The fileName does not have a .bmp, .jpg, .tif, .png extension. |
var elevProfileGraph = MapView.Active.GetElevationProfileGraph(); // Elevation profile graph will be null if no profile graph is displayed if (elevProfileGraph == null) return; if (elevProfileGraph.CanExport) { elevProfileGraph.ExportToImage("c:\\temp\\myprofileImage.png"); elevProfileGraph.ExportToCSV("c:\\temp\\myprofile.csv"); }
Target Platforms: Windows 11, Windows 10