I can use the code:
for lyr in arcpy.mapping.ListLayers(dataframe): arcpy.SelectLayerByAttribute_management(lyr, "CLEAR_SELECTION")
to deselect features in each layer in my map. However, the above does not deselect tables in my map, or even attempt to. I have three layers and two tables, the layers deselect fine, but the tables are ignored. Also, the following code:
for tbl in arcpy.mapping.ListTableViews(df): arcpy.TableSelect_analysis(tbl, "CLEAR_SELECTION")
crashes every time with the error:
Error 000210: Cannot create output CLEAR_SELECTION
and in addition the online reference table for table select: http://pro.arcgis.com/en/pro-app/tool-reference/analysis/table-select.htm does not include directions on deselecting from a table. What is the proper syntax to use for the TableSelect_analysis to deselect everything?