Hi community,
I am having problems to show the a Feature Layer label while exporting a Layout to a PDF File using a script tool on ArcGIS Pro.
As below, I've set the Label Class and expression, which seems to work on the application; however, when running this script which is producing a Map Book PDF the label for that feature is not shown until the Map Book PDF is exported.
# Create XY Coordinates Labels
XYCoordinates.showLabels = True
if XYCoordinates.supports("SHOWLABELS"):
XYCoordinatesLblClass = XYCoordinates.listLabelClasses()[0]
XYCoordinatesLblClass.expression = """'<FNT size="24">' + round($feature.POINT_X) + " " + round($feature.POINT_Y) + '</FNT>'"""""
XYCoordinatesLblClass.visible = TrueIs anyone having the same issue? I am also showing the GridIndexFeature labels produced by the Grid Index Features without a problem; so have no ideas as to why this specific one is not being shown until the PDF is produced.
Many thanks,
Ana