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

In This Topic
    ElevationTypeDefinition Class
    In This Topic
    Represents an elevation type definition.
    Object Model
    ElevationTypeDefinition ClassLinearUnit Class
    Syntax
    public class ElevationTypeDefinition 
    Public Class ElevationTypeDefinition 
    Remarks
    Allows you to specify whether features display on the ground, relative to the ground (for 3D layers only), at an absolute height, etc. Once an elevation type definition is defined, call SetElevationTypeDefinition to apply it.
    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);
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.ElevationTypeDefinition

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also