Hi All,
I am trying to write unit tests that will ensure all SHAPE related fields within an MXD are hidden. However, even if the SHAPE field visibility is unchecked within the ArcMAP -> Layer Properties -> Fields -> "Choose which fields will be visible" GUI, it seems impossible to read/access this state in ArcPY.
The following will all return "VISIBLE" rather than "HIDDEN" even if they have been hidden (as above):
arcpy.Describe(lyr).fieldInfo.getVisible(arcpy.Describe(lyr).fieldInfo.findFieldByName("SHAPE"))
arcpy.Describe(lyr).fieldInfo.getVisible(arcpy.Describe(lyr).fieldInfo.findFieldByName("SHAPE_Area"))
arcpy.Describe(lyr).fieldInfo.getVisible(arcpy.Describe(lyr).fieldInfo.findFieldByName(