ArcPy - layer.Describe not working across MXDs

المشرف العام

Administrator
طاقم الإدارة
I am using the following code to determine if somehting is selected within a layer:

if arcpy.Describe("layername").FIDSet:

It is working fine and running the following code when I first open ArcMap and run the script, but once I change MXD it stops working, and the FIDset returns empty, even though there are polygons selected as before.

Has anybody run into this/a similar problem before?



أكثر...
 
أعلى