Add Smart Tree Layout (Network Diagram Tools)
Summary
Adds the Smart Tree Layout algorithm to the list of layouts to be automatically chained at the end of the building of diagrams based on a given template. This tool also presets the Smart Tree Layout algorithm parameters for any diagram based on that template.
This layout algorithm arranges the diagram features hierarchically and places them in a smart tree according to the direction and spacing distances specified. By default, the tree branches are ordered according to their relative positions to each other that they have before the layout applies. Starting with ArcGIS Pro 3.6 and ArcGIS Enterprise 12.0, the tree branches can also be ordered according to attribute values on the branches; that is, according to an attribute existing on the lines or on the extremity junctions of the branches.
Learn more about the Smart Tree layout algorithm
Caution:
This tool is a configuration and administration tool.
Note:
This tool impacts the consistency of any existing diagrams based on the input diagram template. All of the existing diagrams become inconsistent and open with a consistency warning icon
until they are updated.
Usage
This tool is not supported when working with a utility network or trace network service. You must use either a utility network or trace network in a file or mobile geodatabase, or a database connection to a utility network or trace network in an enterprise geodatabase. When working with an enterprise geodatabase, the following are requirements:
The Input Network parameter value must be from a database connection established as the database utility network owner or database trace network owner.
The connected ArcGIS Enterprise portal account must be the portal utility network owner or portal trace network owner.
This tool must be connected to the default version, which is expected to be public and not protected.
To preset the layout algorithm parameters for a diagram based on the diagram template, uncheck the Active parameter (
is_active = "INACTIVE"in Python).Run the tool with Active checked (
is_active = "ACTIVE"in Python) if you want the layout algorithm to be added to the list of layouts that will be automatically chained at the end of diagram generation based on the input diagram template.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Network |
The utility network or trace network containing the diagram template that will be modified. |
Utility Network; Trace Network |
|
Input Diagram Template |
The name of the diagram template that will be modified. |
String |
|
Active |
Specifies whether the layout algorithm will automatically run when generating diagrams based on the specified template.
|
Boolean |
|
Preserve container layout (Optional) |
Specifies how the algorithm will process containers.
|
Boolean |
|
Tree Direction (Optional) |
Specifies the direction the tree will be drawn.
|
String |
|
Spacing values interpreted as absolute units in the diagram coordinate system (Optional) |
Specifies how parameters representing distances will be interpreted.
|
Boolean |
|
Between Subtrees (Optional) |
The spacing that will be used between two neighboring subtrees—that is, the spacing between diagram junctions that are displayed perpendicular to the smart tree direction and belong to a different subtree. The default is in the units of the diagram's coordinate system. This parameter can only be used with absolute units. |
Linear Unit |
|
Between Subtrees (Optional) |
The spacing that will be used between two neighboring subtrees—that is, the spacing between diagram junctions that are displayed perpendicular to the smart tree direction and belong to a different subtree. The default is 2. This parameter can only be used with proportional units. |
Double |
|
Between Junctions Perpendicular to the Direction (Optional) |
The spacing that will be used between diagram junctions that are displayed perpendicular to the smart tree direction and belong to the same subtree level. The default is 2 in the units of 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 that will be used between diagram junctions that are displayed perpendicular to the smart tree direction and belong to the same subtree level. The default is 2. This parameter can only be used with proportional units. |
Double |
|
Between Junctions Along the Direction (Optional) |
The spacing that will be used between diagram junctions that are displayed along the smart tree direction. The default is 2 in the units of the diagram's coordinate system. This parameter can only be used with absolute units. |
Linear Unit |
|
Between Junctions Along the Direction (Optional) |
The spacing that will be used between diagram junctions that are displayed along the smart tree direction. The default is 2. This parameter can only be used with proportional units. |
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 |
|
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 |
|
Order tree branches according to an attribute (Optional) |
Specifies whether the tree branches will be ordered according to an attribute.
|
Boolean |
|
Attribute Availability (Optional) |
Specifies whether the attribute to consider is available on diagram junctions or diagram edges.
|
String |
|
Attribute Name (Optional) |
The name or alias of the attribute field that will be used to order the tree branches when this field exists. When the Attribute Availability parameter value is Search the attribute on junctions, this order attribute will be queried on the branch extremity junctions. When the Attribute Availability parameter value is Search the attribute on edges, this order attribute will be queried on the branch extremity edges. |
String |
|
Attribute Sort Order (Optional) |
The sort order that will be used for positioning the branches of the tree layout. Sorting always applies from the first branch on the left to the last branch on the right for vertical tree layouts, that is, when the Tree Direction parameter value is From top to bottom or From bottom to top. For horizontal tree layouts, sorting applies from the first branch at the top to the last branch at the bottom, that is, when the Tree Direction parameter value is From left to right or From right to left.
|
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Network |
The updated utility network or trace network. |
Utility Network; Trace Network |
|
Output Diagram Template |
The name of the diagram template. |
String |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes