Summary
Spaces out collinear edges or collinear portions of edges (edge segments) inside a given buffer zone.
Learn more about the Partial Overlapping Edges 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.
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 is 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 geodatabase.
The input network diagram layer must be from either a utility network or a trace network in a file geodatabase or a network diagram service.
This layout algorithm detects sets of collinear edges or collinear portions of edges (edge segments) that can be considered as being inside a buffer zone of a given size.
The edges or segments must be relatively close to each other—more or less parallel, overlap, or nearly overlap—and similar in length. Segment buffer zones are then repositioned equally on the left and right sides, a proportional distance from the middle of the zone.
The distance between each segment is equal to a given offset. If vertices exist along diagram edges, the global orientation of the segments is preserved as much as possible. This is done so that, for example, a segment lying on the left side of another segment still ends up on the left side.
This layout algorithm is complex and may exceed the server time-out when applied to large diagrams. If you must apply the Partial Overlapping Edges Layout algorithm to the entire diagram content, consider running it in asynchronous mode on the server.
Syntax
arcpy.nd.ApplyPartialOverlappingEdgesLayout(in_network_diagram_layer, buffer_width_absolute, offset_absolute, {optimize_edges}, {run_async})
Parameter | Explanation | Data Type |
in_network_diagram_layer | The network diagram to which the layout will be applied. | Diagram Layer |
buffer_width_absolute | The width of the buffer zone in which to search for collinear edge segments. | Linear Unit |
offset_absolute | The distance that will separate the detected edge segments. | Linear Unit |
optimize_edges (Optional) | Specifies how segments will be placed along edges:
| Boolean |
run_async (Optional) | Specifies whether the layout algorithm will run asynchronously or synchronously on the server.
| Boolean |
Derived Output
Name | Explanation | Data Type |
out_network_diagram_layer | The updated network diagram layer. | Diagram Layer |
Code sample
This sample applies the Partial Overlapping Edges Layout algorithm to the diagram called Temporary Diagram.
import arcpy
arcpy.ApplyPartialOverlappingEdgesLayout_nd("Temporary Diagram", "15 Feet",
"25 Feet", "DO_NOT_OPTIMIZE_EDGES",
"RUN_SYNCHRONOUSLY")
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes