import os, arcpy from arcpy import env path = os.path.join(os.environ['APPDATA'],'ESRI\\Desktop10.1\\ArcCatalog') env.workspace = path workspaces = arcpy.ListWorkspaces("*","SDE") for workspace in workspaces: print workspace
import arcpy from arcpy import env env.workspace = ... # your sde connection file as the SDE user ds = LisDataSets() for d in ds: Analyze(d) fcs = ListFeatureClasses() for fc in fcs: Analyze(fc) tbls = ListTables() for tbl in tbls: Analyze(tbl)
I have set the Environment Variable PYTHONPATH = C:\Python26\ArcGIS10.0\python.exe
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.