I am writing a python script that will batch process Layer3DToFeatureClass. I want all feature classes in a geodatabase to be processed. import arcpy from arcpy import env env.overwriteOutput = True inputFC = "C:/Data/3DScript/pythonTest.gdb" # Set workspace env.workspace = inputFC fcList = arcpy.ListFeatureClasses () arcpy.CheckOutExtension("3D") for featureClass in fcList: outFC = inputFC + "/" + featureClass + "_3D" arcpy.Layer3DToFeatureClass_3d(featureClass, outFC)
The above script results in "The value cannot be a feature class." In ArcGlobe, however, I can convert the exactly the same feature classes (extruded polygons) using the geoprocessing tool. I am aware that the Layer3DToFeatureClass method requires a Feature Layer as input (http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q900000083000000). What am I missing here? - Azung Kim