for lyr in arcpy.mapping.ListLayers(mxd,"",df): SelectLayerByAttribute_management(lyr,"CLEAR_SELECTION")
Pro solution:
aprx = arcpy.mp.ArcGISProject("CURRENT") map = aprx.listMaps('Your Map')[0] map.clearSelection()
Map—ArcGIS Pro | Documentation
But is there anyway to achieve the same in arcpy?
That is available through ArcObjects, not arcpy.http://forums.esri.com/Thread.asp?c=93&f=992&t=274217
there is a button that clears everything.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.