ArcGIS Pro 3.7 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 Property VerticalExaggeration As Nullable(Of Double)
    public Nullable<double> VerticalExaggeration {get; set;}
    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: needs to be called on the MCT
        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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.3 or higher.
    See Also