for dwg in glob.glob("*.dwg"): dwgPath = os.path.abspathdwg arcpy.env.workspace = dwgPath dwgFcList = arcpy.ListFeatureClasses() for dwgFc in dwgFcList : arcpy.MakeFeatureLayer_management(dwgFc,myFeatLayName) layer = arcpy.mapping.Layer(myFeatLayName) print layer.symbologyType
Depending on the symbology type, a layer's symbology can be modified. There are a limited number of supported symbology types for which properties and methods are available. It is good practice to first test the layer's symbologyType property. If a value of OTHER is returned, then the layer's symbology can't be modified.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.