Lines and polygons are not recognized by ArcPy layer.isRasterizingLayer when referencing the pathname of the map document (MXD).
Last Published: October 30, 2015ArcGIS for Desktop
Bug ID Number
September 21, 2015
November 24, 2020
ArcGIS for Desktop
Operating System Version
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
ArcPy layer.isRasterizingLayer only recognizes lines and polygons when it is ran from the Python Window referencing the 'CURRENT' MXD, whereas points are recognized when referencing the path of the MXD or using the 'CURRENT' MXD. Can only use 'CURRENT' in the Python Window.
mxd = arcpy.mapping.MapDocument('CURRENT')
layers = arcpy.mapping.ListLayers(mxd)
for layer in layers: #list(reversed(layers)):