If you have an open edit session, you must save your edits prior to running this tool. This ensures that the diagram reflects the latest changes made to the network topology in the database. If you fail to save your edits, the edits will not be reflected in the diagram.
License:
The active portal account must be assigned a license with the ArcGIS Advanced Editing user type extension to use this tool in an enterprise deployment.
Note:
Each layout algorithm includes default parameter values. The default parameter values will be used unless otherwise specified. If the input network diagram is based on a template for which this layout has been configured with a different parameter value, that value will be used instead.
Usage
This tool is not supported when working with a database connection to a utility network or trace network in an enterprise geodatabase. You must use either the related published utility network or trace network service, or a utility network or trace network in a file or mobile geodatabase.
The input network diagram layer must be from either a utility network or a trace network in a file or mobile geodatabase. or a network diagram service.
This layout algorithm progressively moves the diagram's edges in specified alignment directions. For each diagram edge, this layout notes its current direction, searches for the nearest direction among those specified, and moves the edge in that direction.
The network diagram to which the layout will be applied.
Diagram Layer
Preserve container layout
(Optional)
Specifies how the layout algorithm will process containers.
Checked—The layout algorithm will apply to the top graph of the diagram so container layouts are preserved.
Unchecked—The layout algorithm will apply to both content and noncontent features in the diagram. This is the default.
Boolean
Number of Iterations
(Optional)
The number of iterations to process. The default is 1.
Long
Number of Directions
(Optional)
The number of directions that will be used to align the diagram edges and their connected junctions.
12 directions—The edges will move so they progressively approach one of the 12 axes, starting with the edge's origin junction and inclined at 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, or 360 degrees.
8 directions—The edges will move so they progressively approach one of the 8 axes, starting with the edge's origin junction and inclined at 45, 90, 135, 180, 225, 270, 315, or 360 degrees. This is the default.
4 directions—The edges will move so they progressively approach one of the 4 axes, starting with the edge's origin junction and inclined at 90, 180, 270, or 360 degrees.
String
Run in asynchronous mode on the server
(Optional)
Specifies whether the layout algorithm will run asynchronously or synchronously on the server.
Checked—The layout algorithm will run asynchronously on the server. This option dedicates server resources to run the layout algorithm with a longer time-out. Running asynchronously is recommended for layouts that are time consuming and may exceed the server time-out (for example, Partial Overlapping Edges) and applying to large diagrams (more than 25,000 features).
Unchecked—The layout algorithm will run synchronously on the server. It can fail without completion if it exceeds the service default time-out value of 600 seconds. This is the default.
The network diagram to which the layout will be applied.
Diagram Layer
are_containers_preserved
(Optional)
Specifies how the layout algorithm will process containers.
PRESERVE_CONTAINERS—The layout algorithm will apply to the top graph of the diagram so container layouts are preserved.
IGNORE_CONTAINERS—The layout algorithm will apply to both content and noncontent features in the diagram. This is the default.
Boolean
iterations_number
(Optional)
The number of iterations to process. The default is 1.
Long
number_of_directions
(Optional)
The number of directions that will be used to align the diagram edges and their connected junctions.
TWELVE_DIRECTIONS—The edges will move so they progressively approach one of the 12 axes, starting with the edge's origin junction and inclined at 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, or 360 degrees.
EIGHT_DIRECTIONS—The edges will move so they progressively approach one of the 8 axes, starting with the edge's origin junction and inclined at 45, 90, 135, 180, 225, 270, 315, or 360 degrees. This is the default.
FOUR_DIRECTIONS—The edges will move so they progressively approach one of the 4 axes, starting with the edge's origin junction and inclined at 90, 180, 270, or 360 degrees.
String
run_async
(Optional)
Specifies whether the layout algorithm will run asynchronously or synchronously on the server.
RUN_ASYNCHRONOUSLY—The layout algorithm will run asynchronously on the server. This option dedicates server resources to run the layout algorithm with a longer time-out. Running asynchronously is recommended for layouts that are time consuming and may exceed the server time-out (for example, Partial Overlapping Edges) and applying to large diagrams (more than 25,000 features).
RUN_SYNCHRONOUSLY—The layout algorithm will run synchronously on the server. It can fail without completion if it exceeds the service default time-out value of 600 seconds. This is the default.
Boolean
Derived output
Name
Explanation
Data type
out_network_diagram_layer
The updated network diagram layer.
Diagram Layer
Code sample
ApplyAngleDirectedLayout example (Python window)
Apply the Angle Directed Layout algorithm to the diagram called Temporary Diagram.