I want to unify my gdb's, and later the layers in the mxd. I ran the following script successfully, but some of my layers are not the same as the template ones. Annotation Feature classes are not created. Why doesn't this tool create Annotation Feature Classes?
import arcpy, os, sys #list of my desired FCs in a gdb fcList = ['FC1', 'FC2', 'FC3'] gdb = "D:\\scripttest\\fillup\\test.gdb" spatial_reference = arcpy.Describe("D:\\scripttest\\fillup\\test.gdb\\FC").spatialReference has_m = "DISABLED" has_z = "DISABLED" workspace = "D:\\scripttest\\fillup" for fcName in fcList: arcpy.env.workspace = gdb if not arcpy.Exists(fcName): #Searching for a template feature class in a folder to copy it's structure and appending it to fc fc =  while len(fc)<1: for dirpath, dirnames, filenames in arcpy.da.Walk(workspace, datatype="FeatureClass"): for fname in filenames: if fname == fcName: fc.append(os.path.join(dirpath, fcName)) print fcName + " creating" template = fc print ("temp: "+ template) #getting the geometry_type from the template desc = arcpy.Describe(template) geometry_type = desc.shapeType arcpy.CreateFeatureclass_management(gdb, fcName, geometry_type, template, has_m, has_z, spatial_reference) print (fcName + " created") del fc[:]