Resumen
Executes a geoprocessing tool as a single string.
Debate
Sintaxis
Command (command_line)
Parámetro | Explicación | Tipo de datos |
command_line | The double-quoted string representing a command line command that is to be executed. | String |
Valor de retorno
Tipo de datos | Explicación |
String | The geoprocessing tool messages, separated by a newline ('\n'). If the tool fails, only the error messages are returned. |
Muestra de código
Command example
Execute double-quoted command line string.
import arcpy
# Set current workspace and define command line command.
arcpy.env.workspace = "c:/data/florida.gdb"
command_string = "Clip_analysis Runways DadeCounty DadeRunways"
# Execute command line string
arcpy.Command(command_string)