How can I set X/Y shadow offset values to 1 and -1 in the advanced text window?

المشرف العام

Administrator
طاقم الإدارة
I'm trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I've done everything I need except assigning a value of 1 to X offset and a value of -1 to Y offset. Below is my code:

import arcpy mxd = arcpy.mapping.MapDocument(r"CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0] updateLayer = arcpy.mapping.ListLayers(mxd, "OCParcelsAPN selection", df) [0] sourceLayer = arcpy.mapping.Layer(r"L:\GISLibrary\Scripts\Python\Reference Layers\OCParcels_selection.lyr") arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True) del sourceLayer mxd = arcpy.mapping.MapDocument(r"CURRENT") layer = arcpy.mapping.ListLayers(mxd) [0] if layer.supports("LABELCLASSES"): for lblclass in layer.labelClasses: lblclass.className = "ASSESSMENT" lblclass.expression = '" " & [ASSESSMENT] & " "' lblclass.showClassLabels = True layer.showLabels = True arcpy.RefreshActiveView()strong text



أكثر...
 
أعلى