ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Editing Namespace / MapTopologyProperties Class
Members Example

In This Topic
    MapTopologyProperties Class
    In This Topic
    A class representing a map topology.
    public sealed class MapTopologyProperties : TopologyProperties 
    Public NotInheritable Class MapTopologyProperties 
       Inherits TopologyProperties
    Get List of available topologies in the map
    QueuedTask.Run(async () =>
      var map = MapView.Active.Map;
      //Get a list of all the available topologies for the map
      var availableTopologies = await map.GetAvailableTopologiesAsync();
      var gdbTopologies = availableTopologies.OfType<GeodatabaseTopologyProperties>();
      var mapTopologies = availableTopologies.OfType<MapTopologyProperties>();
    Get the properties of the active topology in the map
    var map = MapView.Active.Map;
    var activeTopologyProperties = await map.GetActiveTopologyAsync();
    var isMapTopology = activeTopologyProperties is MapTopologyProperties;
    var isGdbTopology = activeTopologyProperties is GeodatabaseTopologyProperties;
    var isNoTopology = activeTopologyProperties is NoTopologyProperties;
    Get map topology properties
    var mapTopoProperties = await map.GetTopologyAsync("Map") as MapTopologyProperties;
    var tolerance_m = mapTopoProperties.Tolerance;
    var defaultTolerance_m = mapTopoProperties.DefaultTolerance;
    Set Map Topology as the current topology
    if (map.CanSetMapTopology())
      //Set the topology of the map as map topology
      mapTopoProperties = await map.SetMapTopologyAsync() as MapTopologyProperties;
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also