Add Force Directed Layout (Network Diagram Tools)
Summary
Adds the Force Directed 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 Force Directed Layout algorithm parameters for any diagram based on that template.
This layout algorithm uses a physical analogy to draw graphs by identifying a force system in which it tries to locally minimize the energy. It searches for an equilibrium state of the force system—a position for each diagram junction where the total force on each junction is zero.
Learn more about the Force Directed 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 layout algorithm will process containers.
|
Boolean |
|
Number of Iterations (Optional) |
The number of iterations to process. The default is 20. |
Long |
|
Repel Factor (Optional) |
Adds distance between diagram junctions that are close together. The larger the repel factor, the greater the distance that will be added between nearly overlapping diagram junctions. The default is 1. |
Double |
|
Degree of Freedom (Optional) |
Specifies the area used to move the diagram junctions during each algorithm iteration.
|
String |
|
Break Point Relative Position (%) (Optional) |
The relative position of the two inflexion 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 is not related to the topology of the network feature or object edge. This parameter is ignored when the Edge Display Type parameter is set to Regular edges ( |
Double |
|
Edge Display Type (Optional) |
Specifies the type of display for the diagram edges.
|
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