Skip To Content

Apply Partial Overlapping Edges Layout

Summary

Spaces out collinear edges or collinear portions of edges (edge segments) inside a given buffer zone.

Caution:

If you have an open edit session, you must save your edits prior to running this tool. This ensures 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 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.

Syntax

ApplyPartialOverlappingEdgesLayout_un (in_network_diagram_layer, buffer_width_absolute, offset_absolute, {optimize_edges})
ParameterExplanationData Type
in_network_diagram_layer

The network diagram where 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 are placed along edges:

  • OPTIMIZE_EDGESThe placement of segments is optimized in each set of collinear segments. This is done by focusing on their connections instead of their positions. Segments that cross each other can be repositioned so they do not cross.
  • DO_NOT_OPTIMIZE_EDGESThe initial position of each segment is maintained in the collinear segment set and crossings are preserved. This is the default option.
Boolean

Derived Output

NameExplanationData Type
out_network_diagram_layer

The updated network diagram layer.

Diagram Layer

Code sample

ApplyPartialOverlappingEdgesLayout example (Python window)

This sample applies the Partial Overlapping Edges Layout algorithm to the diagram called Temporary Diagram.

import arcpy
arcpy.ApplyPartialOverlappingEdgesLayout_un("Temporary Diagram", "15 Feet", 
                                            "25 Feet", "DO_NOT_OPTIMIZE_EDGES")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics