I am trying to merge several shape files (county) from a geodatabase to create a shapefile for a state. I tryed following script - but it is not working.I am using ArcGis 10. Help will be appreciated. Thanks
zia
# Script:
import arcpy, os
## Set the workspace
arcpy.env.workspace= "K:/COUNTY_MUKEY/test.gdb"
fcs = arcpy.ListFeatureClasses()
# Create the multi-value string for the Analysis Union tool
fcs.reset
# Get the first feature class name and set the string variable
fc = fcs.next()
inputs = fc
# Get the next name and start the loop
fc = fcs.next()
while fc: # While the fc name is not empty
inputs = inputs + ";" + fc
fc= fcs.next()
print inputs
# Process: Merge...
try:
arcpy.Merge_management(inputs,"K:/STATE_ MUKEY/REA.gdb/soilmu_in")
print "finished"
except:
print "error"
print arcpy.GetMessage()
del arcpy
# Error
Traceback (most recent call last):
File "K:\Script\Python_Script\merge_shape.py", line 12, in <module>
fcs.reset
AttributeError: 'list' object has no attribute 'reset'
>>>