I am trying to get LisfFields from AutoCad DWG, to arcpy Add-In, i have tried
mxd = arcpy.mapping.MapDocument("CURRENT") Layers = arcpy.mapping.ListLayers(mxd) for Layers in Layers: if Layers.name==Target_Layer: fieldList = arcpy.ListFields(Target_Layer) for field in fieldList: fieldName=str(field.name)
It works for Feature Class Layers but not for DWG.
Is there other way to do this?
I have also tried MakeFeatureLayer before LisfFields and it did not work.