RemoveToolbox (arcpy)

摘要

通过指定路径或引用别名来移除指定的工具箱。从当前地理处理会话中移除指定工具箱。还可使用分号分隔符移除服务器工具箱。

讨论

警告警告:

RemoveToolbox 仅从地理处理器对象中移除工具;不直接从 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.

  • The name, including path, or alias, of the toolbox to be removed from the current geoprocessing session. Place the name/path, or alias, string inside double quotes. Server toolboxes can also be removed using a semicolon delimiter.

    • Syntax for Internet ArcGIS for Server
      • URL servername;{username};{password}
    • Syntax for Local ArcGIS for Server
      • machinename;servername.
    • Syntax for Internet ArcGIS for Server
      • URL;servername;{username};{password}
    • Syntax for Local ArcGIS for Server
      • machinename;servername

String

代码实例

RemoveToolbox 示例

从当前地理处理会话中移除指定工具箱。

import arcpy

# Remove a toolbox from session
#
arcpy.RemoveToolbox("c:/mytoolboxes/operations.tbx")

相关主题

9/15/2013