ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / MapViewingMode Enumeration
Example Example

In This Topic
    MapViewingMode Enumeration
    In This Topic
    The map viewing modes.
    Syntax
    Members
    MemberDescription
    Map A 2D map.
    MapStereo A 2D map in stereo mode. Applicable if map is configured for stereo mode.
    SceneGlobal A scene (3D map) in global view mode.
    SceneLocal A scene (3D map) in local view mode.
    Example
    Test if the view is 3D
    {
      //Determine whether the viewing mode is SceneLocal or SceneGlobal
      var result = mapView.ViewingMode == MapViewingMode.SceneLocal ||
                   mapView.ViewingMode == MapViewingMode.SceneGlobal;
    
      // Use the result variable as needed
    }
    Check if a Voxel Layer can be created
    {
      //Map must be a local scene
      bool canCreateVoxel = (MapView.Active.ViewingMode == MapViewingMode.SceneLocal);
    
      if (canCreateVoxel)
      {
        //TODO - use the voxel api methods
      }
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.CIM.MapViewingMode

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also