Increase Maximum Edges (Network Analyst)

Summary

Increases the maximum number of edges per turn in a turn feature class.

Usage

Syntax

IncreaseMaximumEdges_na (in_turn_features, maximum_edges)
ParameterExplanationData Type
in_turn_features

The turn feature class that is having its maximum number of edges raised.

Feature Layer
maximum_edges

The new maximum number of edges in the input turn feature class. The value must be at least one higher than the existing maximum number of edges and cannot be greater than 20.

Long

Code Sample

IncreaseMaximumEdges example 1 (Python window)

Execute the tool using all parameters

import arcpy
arcpy.env.workspace = "C:/ArcTutor/Network Analyst/Tutorial/SanFrancisco.gdb"
arcpy.IncreaseMaximumEdges_na("Transportation/RestrictedTurns",8)
IncreaseMaximumEdges example 2 (stand-alone Python script)

The following Python script demonstrates how to use the IncreaseMaximumEdges tool in a stand-alone script.

# Name: IncreaseMaximumEdges_ex02.py
# Description: Increase maximum edges for turn features from 2 to 5.
# Requirements: Network Analyst Extension 
# Author: ESRI

#Import system modules
import arcpy
from arcpy import env


#Check out the Network Analyst extension license
arcpy.CheckOutExtension("Network")

#Set environment settings
env.workspace = "C:/data/SanFrancisco.gdb/Transportation"

#Set local variables
inTurnFeatures = "RestrictedTurns"
maxEdges = 5

#Increase the edges for turn features
arcpy.IncreaseMaximumEdges_na(inTurnFeatures, maxEdges)

print "Script completed successfully."

Environments

Related Topics

Licensing Information

ArcView: Requires Network Analyst
ArcEditor: Requires Network Analyst
ArcInfo: Requires Network Analyst

Published 6/7/2010