1.引入自定义的工具箱
c:\python
>>>import arcpy
>>>arcpy.ImportToolbox("c:/PCovertL.tbx")
2.List工具箱中访问工具的方法
1)列出所有工具箱,查看别名
c:\python
>>>import arcpy
>>> toolboxList=arcpy.ListToolboxes()
>>> for toolbox in toolboxList:
... print toolbox
...
3D Analyst Tools(3d)
Analysis Tools(analysis)
Cartography Tools(cartography)
Conversion Tools(conversion)
Data Interoperability Tools(interop)
Data Management Tools(management)
Editing Tools(edit)
Geocoding Tools(geocoding)
Geostatistical Analyst Tools(ga)
Linear R