ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Telecom Namespace / CircuitLocation Class / CircuitLocation Constructor
The element that the circuit location is based on.
Example

In This Topic
    CircuitLocation Constructor
    In This Topic
    Creates a circuit location based on the associated circuit ArcGIS.Core.Data.UtilityNetwork.Element.
    Syntax
    Public Function New( _
       ByVal element As Element _
    )
    public CircuitLocation( 
       Element element
    )

    Parameters

    element
    The element that the circuit location is based on.
    Example
    Create a Telecom Element and Circuit Location in the utility network
    await QueuedTask.Run(() =>
    {
      using (NetworkSource networkSource = telecomDomainNetwork.NetworkSources.FirstOrDefault(ns => ns.Name.Contains(assetGroupName)))
      using (AssetGroup assetGroup = networkSource.GetAssetGroup(assetTypeName))
      using (AssetType assetType = assetGroup.GetAssetType(assetTypeName))
      {
        if (assetType == null)
        {
          throw new Exception($"Asset type '{assetTypeName}' not found in group '{assetGroupName}'.");
        }
    
        TelecomElement telecomElement = utilityNetwork.CreateElement(assetType, globalID) as TelecomElement;
    
        // Use the telecom element to create a circuit location.
        CircuitLocation circuitLocation = new CircuitLocation(telecomElement);
      }
    });
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also