ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TopologyLayerCreationParams Class
Members Example

In This Topic
    TopologyLayerCreationParams Class
    In This Topic
    Represents an object to initialize and create a topology layer with pre-defined properties.
    Object Model
    TopologyLayerCreationParams ClassLayer ClassLayer ClassLayer ClassLayer ClassLayer ClassCIMDataConnection ClassItem ClassCIMLayerDocument ClassTopology Class
    Syntax
    public class TopologyLayerCreationParams : LayerCreationParams 
    Public Class TopologyLayerCreationParams 
       Inherits LayerCreationParams
    Example
    Create TopologyLayer with an Uri pointing to a Topology dataset
    {
      var path = @"D:\Data\CommunitySamplesData\Topology\GrandTeton.gdb\BackCountry\Backcountry_Topology";
      var lcp = new TopologyLayerCreationParams(new Uri(path));
      lcp.Name = "GrandTeton_Backcountry";
      lcp.AddAssociatedLayers = true;
      var topoLayer = await QueuedTask.Run(() =>
        LayerFactory.Instance.CreateLayer<ArcGIS.Desktop.Mapping.TopologyLayer>(lcp, map));
    }
    Create Topology Layer using Topology dataset
    {
      //Get the Topology of another Topology layer
      var existingTopology = map.GetLayersAsFlattenedList().OfType<TopologyLayer>().FirstOrDefault();
      if (existingTopology != null)
      {
        await QueuedTask.Run(() =>
        {
          var topology = existingTopology.GetTopology();
          //Configure the settings for a new Catalog layer using the CatalogDataset of an existing layer
          var topologyLyrParams = new TopologyLayerCreationParams(topology);
          topologyLyrParams.Name = "NewTopologyLayerFromAnotherTopologyLayer";
          topologyLyrParams.AddAssociatedLayers = true;
          LayerFactory.Instance.CreateLayer<TopologyLayer>(topologyLyrParams, map);
        });
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.BaseCreationParams
          ArcGIS.Desktop.Mapping.MapMemberCreationParams
             ArcGIS.Desktop.Mapping.LayerCreationParams
                ArcGIS.Desktop.Mapping.TopologyLayerCreationParams

    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also