RemoveToolbox
摘要
Removes the specified toolbox, either by specifying its path or referencing its alias. Removes the specified toolbox from the current geoprocessing session. Server toolboxes can also be removed using a semicolon delimiter.
讨论
警告:
RemoveToolbox only removes tools from the geoprocessor object; tools are not directly removed from arcpy.
语法
RemoveToolbox (toolbox)
参数 | 说明 | 数据类型 |
toolbox |
The name of the toolbox, including either path or alias, to be removed from the current geoprocessing session. The name/path or alias should be placed in a double-quoted string. Server toolboxes can be removed using a semicolon delimiter.
| String |
代码示例
RemoveToolbox example
Removes the specified toolbox from access by current geoprocessing session.
import arcpy # Remove a toolbox from session # arcpy.RemoveToolbox("c:/mytoolboxes/operations.tbx")
相关主题
7/10/2012