ListDirectionsStyleNames
Résumé
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.
Discussion
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.
Syntaxe
ListDirectionsStyleNames({network_dataset_path})
| Le paramètre | Explication | Type de données |
|---|---|---|
|
network_dataset_path |
A variable that references the catalog path of the network dataset. The catalog path of a network dataset can be obtained from the The parameter also accepts a network dataset layer object. |
String |
Valeur de retour
| Type de données | Explication |
|---|---|
|
String |
The list of available directions styles containing strings representing the styles installed on your machine. It is a subset of the following styles:
|
Exemple de code
Lists supported directions styles.
# Create a list of available directions styles
dir_styles = arcpy.na.ListDirectionsStyleNames()