ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / NetworkDiagram Class / ApplyLayout Method / ApplyLayout(DiagramLayoutParameters,DiagramElementObjectIDs,ServiceSynchronizationType) Method
Predefined layout parameters.
The DiagramElementObjectIDs on which the layout will be applied.
Specifies which implementation of the service endpoint to call. For non-services-based networks, ArcGIS.Core.Data.ServiceSynchronizationType.Synchronous should be used.

In This Topic
    ApplyLayout(DiagramLayoutParameters,DiagramElementObjectIDs,ServiceSynchronizationType) Method
    In This Topic
    Apply a predefined layout on a subset of diagram elements. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    layoutParameters
    Predefined layout parameters.
    subset
    The DiagramElementObjectIDs on which the layout will be applied.
    serviceSynchronizationType
    Specifies which implementation of the service endpoint to call. For non-services-based networks, ArcGIS.Core.Data.ServiceSynchronizationType.Synchronous should be used.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Remarks
    This routine generates its own editing transaction, and therefore cannot be wrapped in a separate transaction. Because the editing performed by this routine cannot be undone, this routine can also not be called within an editing session. All edits in the current edit session must be saved or discarded before calling this routine.
    • This routine generates its own editing transaction, and therefore cannot be wrapped in a separate transaction. Because the editing performed by this routine cannot be undone, this routine can also not be called within an editing session. All edits in the current edit session must be saved or discarded before calling this routine.
    • Note that regardless of the ArcGIS.Core.Data.ServiceSynchronizationType used, this C# routine is still synchronous; the current thread will block until the routine completes.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also