Apply Mainline Tree Layout (Network Diagram Tools)
Summary
Arranges diagram junctions and edges hierarchically along a main line.
Learn more about the Mainline Tree layout algorithm
Caution:
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 arranges the junctions and edges in the input network diagram hierarchically along a main line and places its related branches on the left side, the right side, or both sides of the main line.
Root and end junctions can be specified in the diagram so the Mainline Tree layout algorithm will build a main line starting at a specified root junction and ending at a specified end junction.
By default, when no root and end junctions are specified, the algorithm identifies the diagram junction associated with the smallest network topology index. Starting from this junction representing the root, the algorithm searches for a line composed of the greatest number of edges: the main line.
When a root junction is set, the main line is one of the branches composed of the greatest number of edges starting from this root junction.
When both root and end junctions are specified and there is a path between them, the main line is the branch composed of the greatest number of diagram edges starting from this root junction and ending at this end junction.
If your network diagram is composed of several disconnected diagram parts, you can define several root and end junctions, for example, one for each part of the diagram.
Several junctions that belong to the same connected diagram part can also be specified as roots. They are all aligned along the same axis perpendicularly to the tree direction and appear as different start points for a tree branch of the diagram. For end junctions, although nothing prevents you from specifying several ends on the same connected diagram part, the system identifies only one of them as the end junction.
If an end junction is specified but no root junction is specified, the end junction is ignored.
Consider applying the layout in asynchronous mode on the server when working on very large diagrams.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Network Diagram Layer |
The network diagram to which the layout will be applied. |
Diagram Layer |
|
Preserve container layout (Optional) |
Specifies how the layout algorithm will process containers.
|
Boolean |
|
Tree Direction (Optional) |
Specifies the direction of the main line.
|
String |
|
Branches Placement (Optional) |
Specifies how branches from the main line will be relatively placed with regard to its direction.
|
String |
|
Spacing values interpreted as absolute units in the diagram coordinate system (Optional) |
Specifies how parameters representing distances will be interpreted.
|
Boolean |
|
Between Junctions Perpendicular to the Direction (Optional) |
The spacing between diagram junctions that are displayed along the axis perpendicular to the main line. The default is 2 in the diagram's coordinate system. This parameter can only be used with absolute units. |
Linear Unit |
|
Between Junctions Perpendicular to the Direction (Optional) |
The spacing between diagram junctions that are displayed along the axis perpendicular to the main line. The default is 2. This parameter can only be used with proportional units. |
Double |
|
Between Junctions Along the Direction (Optional) |
The spacing between diagram junctions that are displayed along the main line, as well as the spacing between diagram junctions that are displayed along the axis parallel to the main line. This parameter can only be used with absolute units. The default is 2 in the units of the diagram's coordinate system. |
Linear Unit |
|
Between Junctions Along the Direction (Optional) |
The spacing between diagram junctions that are displayed along the main line, as well as the spacing between diagram junctions that are displayed along the axis parallel to the main line. This parameter is used with proportional units. The default is 2. |
Double |
|
Between Disjoined Graphs (Optional) |
The minimum spacing that will separate features belonging to disjoined graphs when the diagram contains such graphs. This parameter is used with absolute units. The default is 4 in the units of the diagram's coordinate system. |
Linear Unit |
|
Between Disjoined Graphs (Optional) |
The minimum spacing that will separate features belonging to disjoined graphs when the diagram contains such graphs. This parameter is used with proportional units. The default is 4. |
Double |
|
Orthogonally display edges (Optional) |
Specifies how diagram edges that are related to the tree branches will display. Legacy:This parameter is deprecated at ArcGIS Pro 3.6. The display of tree branches is now controlled using the Edge Display Type parameter.
|
Boolean |
|
Break Point Relative Position (%) (Optional) |
The relative position of the break point that will be inserted along the diagram edges when Edge Display Type is set to Regular edges (
The relative position of the two inflection points that will be inserted along the diagram edges to compute the curved edges geometry when Edge Display Type is set to Curved edges (
Note:The concept of the from and to junctions above is relative to the tree direction; it has nothing to do with the real topology of the edge feature or edge object in the network. |
Double |
|
Edge Display Type (Optional) |
Specifies the type of display for the diagram edges related to the tree branches.
|
String |
|
Run in asynchronous mode on the server (Optional) |
Specifies whether the layout algorithm will run asynchronously or synchronously on the server.
|
Boolean |
|
Absolute Offset (Optional) |
The offset that will be used to separate overlapping segments when using absolute units and Edge Display Type is set to Orthogonal edges. The value cannot exceed 10 percent of the smallest value specified for the other spacing parameters. The default is 0. |
Linear Unit |
|
Proportional Offset (Optional) |
The offset that will be used to separate overlapping segments when using proportional units and Edge Display Type is set to Orthogonal edges. It is a double value that cannot exceed 10 percent of the smallest value specified for the other spacing parameters. The default is 0. |
Double |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Network Diagram |
The updated network diagram layer. |
Diagram Layer |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes