Returns a list of the available styles for generating directions from a route created during network analysis. Each directions style is appropriate for a different application.
This function can be used in a custom script tool validation to populate a ValueList of available directions styles for the user to choose from.
A variable that references the catalog path of the network dataset. The catalog path of a network dataset can be obtained from the dataSource property of a network dataset layer or a network analysis layer object. It can also be obtained from the catalogPath property of a network dataset describe object.
The list of available directions styles containing strings representing the styles installed on your machine. It is a subset of the following styles:
Reads a network dataset and lists its supported styles.
# Path to an on-disk network dataset nds = r'C:Data/SanDiego.gdb/Transportation/Streets_ND' # Create a list of directions styles available in the network dataset dir_styles = arcpy.na.ListDirectionsStyleNames(nds)