I would to create a script which can replace text in arcgis layout from values in a feature class.kindly requesting if any one can help on this.This code work fines but it can only select one field. i got this code from choose field value script. i am very new to python.
import arcpy InputFeatureClass = arcpy.GetParameterAsText(0) InputField = arcpy.GetParameterAsText(1) InputValue = arcpy.GetParameterAsText(2) arcpy.SetParameter(3, InputValue) mxd = arcpy.mapping.MapDocument(r"Current") for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"): if elm.text == "text1": elm.text = InputValue arcpy.RefreshActiveView() del mxd
أكثر...
import arcpy InputFeatureClass = arcpy.GetParameterAsText(0) InputField = arcpy.GetParameterAsText(1) InputValue = arcpy.GetParameterAsText(2) arcpy.SetParameter(3, InputValue) mxd = arcpy.mapping.MapDocument(r"Current") for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"): if elm.text == "text1": elm.text = InputValue arcpy.RefreshActiveView() del mxd

أكثر...