ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationTypeDefinition Class / VerticalExaggeration Property
Example

In This Topic
    VerticalExaggeration Property (ElevationTypeDefinition)
    In This Topic
    Gets or sets the vertical exaggeration value.
    Syntax
    public Nullable<double> VerticalExaggeration {get; set;}
    Public Property VerticalExaggeration As Nullable(Of Double)
    Remarks
    The value specifies any vertical exaggeration of features. For example, specifying a vertical exaggeration value of 2.0 would multiply the feature elevation values by 2.0. VerticalExaggeration can be specified for a LayerElevationType of: LayerElevationType.AtAbsoluteHeight, LayerElevationType.RelativeToCustomSurface, and LayerElevationType.RelativeToGround otherwise it is ignored.
    Example
    Set Elevation Mode for a layer
    //Note: Use QueuedTask.Run
    ElevationTypeDefinition elevationTypeDefinition = featureLayer.GetElevationTypeDefinition();
    elevationTypeDefinition.ElevationType = LayerElevationType.OnGround;
    //elevationTypeDefinition.ElevationType = LayerElevationType.RelativeToGround;
    //elevationTypeDefinition.ElevationType = LayerElevationType.RelativeToScene;
    //elevationTypeDefinition.ElevationType = LayerElevationType.AtAbsoluteHeight;
    //..so on.
    //Optional: Specify the cartographic offset
    elevationTypeDefinition.CartographicOffset = 1000;
    //Optional: Specify the VerticalExaggeration
    elevationTypeDefinition.VerticalExaggeration = 2;
    if (featureLayer.CanSetElevationTypeDefinition(elevationTypeDefinition))
          featureLayer.SetElevationTypeDefinition(elevationTypeDefinition);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also