Skip To Content

Apply Rotate Tree Layout

Summary

Rotates the tree or trees related to pivot junctions currently set up in a diagram to the specified angle.

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 rotates the tree or trees related to the pivot junctions currently set up in the input network diagram layer according to the specified angle.

  • The Rotate Tree algorithm requires at least one pivot junction, such as a junction used as the center point around which the related graph will be rotated. The Rotate Tree layout also takes into account any barriers in the input diagram layer to prevent the algorithm from executing beyond the barriers.

Syntax

ApplyRotateTreeLayout_un (in_network_diagram_layer, {are_containers_preserved}, {rotation_angle})
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
rotation_angle
(Optional)

The angle in degrees that will be used to rotate the tree. The default is 45 degrees.

Double

Derived Output

NameExplanationData Type
out_network_diagram_layer

The updated network diagram layer.

Diagram Layer

Code sample

ApplyRotateTreeLayout example (Python window)

This sample script applies a 90-degree Rotate Tree layout to the diagram called Temporary Diagram while preserving the geometry of any content features.

import arcpy
arcpy.ApplyRotateTreeLayout_un('Temporary Diagram', 'PRESERVE_CONTAINERS', 90)

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics