Skip To Content

Apply Angle Directed Layout

Summary

Moves a diagram's edges in specified alignment directions.

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 progressively moves the diagram's edges in specified alignment directions. For each diagram edge, this layout considers its current direction, searches for the nearest desired direction among those specified, and moves the edge in that direction.

Syntax

ApplyAngleDirectedLayout_un (in_network_diagram_layer, {are_containers_preserved}, {iterations_number}, {number_of_directions})
ParameterExplanationData Type
in_network_diagram_layer

The network diagram where the layout will be applied.

Diagram Layer
are_containers_preserved
(Optional)

Specifies how containers will be processed by the algorithm.

  • PRESERVE_CONTAINERS The layout algorithm executes on the top graph of the diagram so containers are preserved.
  • IGNORE_CONTAINERSThe layout algorithm executes on both content and noncontent features in the diagram. This is the default.
Boolean
iterations_number
(Optional)

The number of iterations to process. The default is 1.

Long
number_of_directions
(Optional)

The number of directions that must be used to align the diagram edges and their connected junctions.

  • TWELVE_DIRECTIONSThe edges will move so they progressively approach one of the 12 axes, starting with the edge's origin junction and inclined at 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, or 360 degrees.
  • EIGHT_DIRECTIONSThe edges will move so they progressively approach one of the 8 axes, starting with the edge's origin junction and inclined at 45, 90, 135, 180, 225, 270, 315, or 360 degrees. This is the default.
  • FOUR_DIRECTIONSThe edges will move so they progressively approach one of the 4 axes, starting with the edge's origin junction and inclined at 90, 180, 270, or 360 degrees.
String

Derived Output

NameExplanationData Type
out_network_diagram_layer

The updated network diagram layer.

Diagram Layer

Code sample

ApplyAngleDirectedLayout example (Python window)

Apply the Angle Directed Layout algorithm to the diagram called Temporary Diagram.

import arcpy
arcpy.ApplyAngleDirectedLayout_un('Temporary Diagram', 'PRESERVE_CONTAINERS', 
                                  20, 'EIGHT_DIRECTIONS')

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics