ArcGIS Pro 2.6 API Reference Guide
ApplyLayout(DiagramLayoutParameters,DiagramElementObjectIDs,InvocationTarget) Method

ArcGIS.Core.Data.UtilityNetwork.NetworkDiagrams Namespace > NetworkDiagram Class > ApplyLayout Method : ApplyLayout(DiagramLayoutParameters,DiagramElementObjectIDs,InvocationTarget) 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.InvocationTarget.SynchronousService should be used.
Apply a predefined layout on a subset of diagram elements.
Syntax

Parameters

layoutParameters
Predefined layout parameters.
subset
The DiagramElementObjectIDs on which the layout will be applied.
invocationTarget
Specifies which implementation of the service endpoint to call. For non-services-based networks, ArcGIS.Core.Data.InvocationTarget.SynchronousService 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.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

NetworkDiagram Class
NetworkDiagram Members
Overload List