Skip to main content

RemoveToolbox

汇总

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

讨论

注意:

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 Server**

      • URL servername;{username};{password}
    • Syntax for Local ArcGIS Server**

      • machinename;servername.
    • Syntax for Internet ArcGIS Server

      • *URL;servername;{username};{password} *
    • Syntax for Local ArcGIS Server

      • machinename;servername

String

代码示例

RemoveToolbox 示例

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

import arcpy

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