AddToolbox
Récapitulatif
Accède à la boîte à outils spécifiée, en spécifiant son chemin d'accès ou en référençant son alias. AddToolbox ajoute la boîte à outils spécifiée à la session de géotraitement courante et permet d'accéder à n'importe quel outil associé à la boîte à outils.
Syntaxe
Paramètre | Explication | Type de données |
toolbox |
The name, including path, or alias, of the toolbox to be added to the current geoprocessing session. Place the name/path, or alias, string inside double quotes. Server toolboxes can also be added using a semicolon delimiter. The name, including path, or alias, of the toolbox to be added to the current geoprocessing session. Place the name/path, or alias, string inside double quotes. Server toolboxes can also be added using a semicolon delimiter.
| String |
Exemple de code
Ajoute la boîte à outils spécifiée à la session de géotraitement courante.
import arcpy # Add a toolbox to a session # arcpy.AddToolbox("c:/mytoolboxes/operations.tbx") arcpy.gp.CustomTool()