laptop and a wrench

不具合

ListFeatureClasses(), ListTables() and ListDatasets() methods will not work in ArcToolbox as a script tool, but work fine in PythonWin.These methods were defected with shapefiles but not with personal geodatabse and file geodatabase.

最後に公開された状態: August 25, 2014 No Product Found
不具合 ID 番号 NIM011091
送信されましたAugust 20, 2007
最終更新日June 5, 2024
適用対象No Product Found
見つかったバージョン9.2
修正されたバージョン9.3
ステータスFixed

対処法

1) Convert all shapefiles from a folder to one personal geodatabase or file geodatabase.OR2) Use native a py module method to list shapefiles from a directory. The following is an example of how you could use the glob module to build a list of all shapefiles in a given directory. #############################import sys, string, os, glob, timegp = arcgisscripting.create()root = r"C:\Incidents\Active" # one specific folderfile_list = []for folder in glob.glob(root): for file in glob.glob(folder + '/*.shp'): file_list.append(file)x = 0while x < len(file_list): print file_list[x] x+=1############################

再現の手順

不具合 ID: NIM011091

ソフトウェア:

  • No Product Found

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動