By default, when there is no automatic layout specified for the template a diagram is based on, the diagram features display at the same position as their associated network features. At any time, if you want to clarify or normalize spacing between features in network diagrams, you can apply layout algorithms to some or all of the diagram content.
Requirements and prerequisites
The requirements and prerequisites to apply a layout to a network diagram are as follows:
- This operation applies to a network diagram layer that is from either a utility network or trace network in a file or mobile geodatabase, or a network diagram service. When working with a utility network or trace network in an enterprise geodatabase, the input network diagram layer must be from a service.
- Since this operation is transactional, edits must be saved before it is run.
Apply a layout to a network diagram
To apply a layout to a network diagram, complete the following steps:
- Activate the network diagram to which you want to apply a layout.
This depends on whether the diagram you are interested in is already open or not:
- For a stored diagram that is not already open, run the Find Diagrams tool on the Network Diagram tab or on the Utility Network or Trace Network tabs in the ribbon to find and open the diagram you want to work with.
- For a diagram that is already open, click a map view that references the diagram. If the map view is not related to a diagram map or is related to a diagram map that references several network diagrams, click the network diagram layer in the Contents pane.
- Verify the Use default parameters to apply layouts option status:
- Click the Network Options dialog box launcher located at the lower right of the Manage or Selection group on the Network Diagram ribbon.
The Network Options dialog box opens with the Network Diagrams tab active.
- If you want the layout algorithm to be directly applied to the active diagram with its default parameters, make sure the Use default parameters to apply layouts option is checked.
In this case, the execution of the layout will be faster since the related tool will not be loaded in the Geoprocessing pane before running. When processing, the system will consider the algorithm's in-house default parameter values unless the active network diagram is based on a template for which the layout algorithm is explicitly configured with other default parameter values.
- To adjust the layout algorithm parameters, uncheck the Use default parameters to apply layouts option.
In this case, the related layout tool will be loaded in the Geoprocessing pane, so you can check the layout parameters and change them before running.
- Click OK to close the Network Options dialog box.
- Click the Network Options dialog box launcher located at the lower right of the Manage or Selection group on the Network Diagram ribbon.
- To run the algorithm on a subset of features in the network diagram, use one of the Select Features tools (for example, Select By Rectangle or Select By Polygon) and select the diagram features.
- If you plan to apply the Smart Tree, Mainline Tree, Radial Tree, or Relative Mainline diagram layout and want this layout algorithm to start from a particular root junction, complete the following steps:
- On the Network Diagram tab, click the drop-down arrow under Set Flags in the Layout group, and click Set Root Junction .
- Click the junction.
A green circle overlays the clicked junction when it is correctly set as a root junction.
- If you plan to apply the Mainline Tree layout and want the main line to end at a particular junction, complete the following steps:
- On the Network Diagram tab, click the drop-down arrow under Set Flags in the Layout group, and click Set End Junction, .
- Click the junction.
A blue square overlays the clicked junction when it is correctly set as an end junction.
- To apply the Rotate Tree layout, specify one or more pivot junctions around which the rotation will operate.
Optionally, you can control the rotation layout and prevent it from executing beyond specific features. To do so, you must specify barriers on the diagram features using the following steps:
- On the Network Diagram tab, click the drop-down arrow under Set Flags in the Layout group, and click Set Pivot Junction, .
- Click the pivot junction.
A gray star overlays the clicked junction when it is correctly set as a pivot junction.
- On the Network Diagram tab, click the drop-down arrow under Set Flags in the Layout group, and click Set Barrier .
- Click the diagram feature on which you want a barrier to be positioned.
A red cross is placed on the clicked diagram feature when the barrier is correctly set up on that feature.
Note:
Barriers can also be set up before executing the Main Ring layout.
- Click the drop-down arrow on the Diagram Layouts button in the Layout group, and click the layout item you want in the gallery:
The next steps depends on the Use default parameters to apply layouts option state:
- When the Use default parameters to apply layouts option is not checked, the related geoprocessing tool loads in the Geoprocessing pane with its default settings:
- Check these layout algorithm tool default settings and modify them if needed.
- Click Run so the layout algorithm executes on the expected diagram features.
- When the Use default parameters to apply layouts option is checked, the layout directly applies to the active diagram and processes the expected diagram features using its default settings.
Note:
The layout default settings correspond to the algorithm's in-house default parameter values unless the active network diagram is based on a template for which the layout algorithm has been explicitly configured with other default parameter values.
- When the Use default parameters to apply layouts option is not checked, the related geoprocessing tool loads in the Geoprocessing pane with its default settings:
In both cases, when the layout execution completes, the diagram zooms or pans to the updated area (which may be the entire extent).
Run diagram layouts in asynchronous mode on the server
If the diagram to which you are going to apply the layout is very large—for example, diagrams representing more than 25,000 features—you may select the Run in asynchronous mode on the server option. This option is not a setting of the diagram layout itself but is available for each layout tool in Advanced Options.
Diagram flags for specific diagram layouts
The diagram flag tools—Set Root Junction, Set End Junction, Set Pivot Junction, and Set Barrier—all work the same way:
- While the tool is active, clicking a particular diagram feature marks that feature to be flagged. A flag symbol appears over the clicked diagram junction or along the clicked diagram edge.
- To reset a particular flag set up on a given feature, click that feature while the flag tool is active. The flag symbol disappears.
- To add a flag on other features, click those features individually while the flag tool is active.
- To remove all the features currently flagged as root junctions, end junctions, pivot junctions, or barriers, click the diagram background while the appropriate tool is active. All the flag symbols used to represent the active type of flag disappear in the diagram.
Moreover, when there are diagram features already flagged in the network diagram layer you are working with, you can activate the flag tool you want to make the related flag type symbol appear on all those diagram features.
Note:
Since end junctions are closely tied to root junctions, when activating the Set End Junction tool, you see both the Root Junction and End Junction flags that are already set up in the active diagram layer. For the same reason, when activating either the Set Pivot Junction or Set Barrier tools, you see both the Pivot Junction and Barrier flags that are already set up in the active diagram layer.
Related topics
- Manage white space editing in a network diagram
- Copy a network diagram layout to another
- Network diagram options
- An overview of the Layout toolset
- Apply Geo Positions Layout
- Apply Template Layouts
- Angle Directed layout reference
- Compression layout reference
- Force Directed layout reference
- Grid layout reference
- Linear Dispatch layout reference
- Main Ring layout reference
- Mainline Tree layout reference
- Partial Overlapping Edges layout reference
- Radial Tree layout reference
- Reshape Diagram Edges layout reference
- Relative Mainline layout reference
- Rotate Tree layout reference
- Smart Tree layout reference
- Spatial Dispatch layout reference