ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Telecom Namespace / UnitIdentifierManager Class / Reset Method
The containers to reset.
Example

In This Topic
    Reset Method (UnitIdentifierManager)
    In This Topic
    Removes gaps and resets the unit space to be contiguous within an equipment hierarchy. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    containers
    The containers to reset.
    Exceptions
    ExceptionDescription
    containers is empty.
    containers is null.
    This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress.
    A geodatabase-related exception has occurred.
    Example
    Reset the contents of a container in the utility network to remove gaps and make the unit space contiguous
    await QueuedTask.Run(() =>
    {
      using (UnitIdentifierManager unitIdentifierManager = utilityNetwork.GetUnitIdentifierManager())
      {
        var networkSource = utilityNetwork.GetDefinition().GetNetworkSource("TelecomDevice");
        UnitIdentifier containerUnitIdentifier = new UnitIdentifier(networkSource, globalID);
    
        // Reset the container to remove all gaps and make the unit space contiguous.
        unitIdentifierManager.Reset(new[] { containerUnitIdentifier });
    
      }
    });
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also