ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TopologyLayerCreationParams Class / TopologyLayerCreationParams Constructor / TopologyLayerCreationParams Constructor(CIMDataConnection)
A ArcGIS.Core.CIM.CIMDataConnection object.
Example

In This Topic
    TopologyLayerCreationParams Constructor(CIMDataConnection)
    In This Topic
    Creates a parameter object with ArcGIS.Core.CIM.CIMDataConnection.
    Syntax
    Public Function New( _
       ByVal dataConnection As CIMDataConnection _
    )
    public TopologyLayerCreationParams( 
       CIMDataConnection dataConnection
    )

    Parameters

    dataConnection
    A ArcGIS.Core.CIM.CIMDataConnection object.
    Example
    Create Topology Layer using Topology dataset
    {
        //Get the Topology of another Topology layer
        var existingTopology = MapView.Active.Map.GetLayersAsFlattenedList().OfType<TopologyLayer>().FirstOrDefault();
        if (existingTopology != null)
        {
            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;
            //Note: Needs QueuedTask to run
            LayerFactory.Instance.CreateLayer<TopologyLayer>(topologyLyrParams, MapView.Active.Map);
        }
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also