CanExport Property (ElevationProfileGraph)
Gets if the current elevation profile can be exported. Returns false if the calculation has not yet been completed.
public bool CanExport {get;}
Public ReadOnly Property CanExport As Boolean
Property Value
True if the elevation profile can be exported. False otherwise.
Export Elevation Profile Graph
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
ArcGIS Pro version: 3.5 or higher.