Problems exporting selected features to a jpeg.

Discussion created by jnunnali on Feb 20, 2012
Latest reply on Feb 23, 2012 by jnunnali
I am having issues trying to select features by attributes and then exporting the selected features to jpeg.  The script selects the features as desired but when exported the features are not depicted or show in the wrong color.  Any thoughts or suggestions would be greatly appreciated.  The script follows:

import arcpy
import arcpy.mapping
arcpy.env.workspace = "path"

arcpy.SelectLayerByAttribute_management ("layer", "NEW_SELECTION", "selection")

#Export selected to jpeg
mxd = arcpy.mapping.MapDocument(r"path")
arcpy.mapping.ExportToJPEG(mxd, r"save_path.jpg")