Hi. I am new to python and arcobjects. I am trying to make a simple script that lists all the feature classes in a personal geodatabase, then do some customization to each feature class. I keep hitting an error when I try to get the list of feature classes in the GDB (I assume that the layers in the GDB should be termed feature classes). Here is the code snippet, plus the error message I get. Any help is greatly appreciated.
# Import arcpy module
import arcpy, sys, os
from arcpy import env
# Local variables:
env.workspace = "C:\Data\module1data.mdb"
outputGDBpath = "C:\Data"
outputGDBname = "SS"
fcs = arcpy.ListFeatureClasses ("*", "all")
fc = fcs.next()
==
I get the error message:
fc = fcs.next()
AttributeError: 'list' object has no attribute 'next'
The gdb has 4 vector feature classes within it.
Thanks.
Karl