How Show shp Selected

المشرف العام

Administrator
طاقم الإدارة
I need help with code to know if a SHP a MXD this selected or not.

I have the following code which only shows me all shp'sy layers are in the layer ,

I need a list if there is a selecionado shp, have if I can help

try: import arcpy mxDoc = "D:/Recidencia Rutina Arcgis/TraslapesEjemplos.mxd" mxd=arcpy.mapping.MapDocument(mxDoc) df = arcpy.mapping.ListDataFrames(mxd)[0] lstLyrs = arcpy.mapping.ListLayers(mxDoc, "*", df) for lyr in lstLyrs: print lyr.name except Exception as ex: print ex.args[0]

أكثر...
 
أعلى