jenabbott

Text Element Automation-Putting text in text element

Discussion created by jenabbott on Oct 16, 2013
Latest reply on Oct 16, 2013 by jenabbott
Hi there,

I have figured out how to automate my Property number to appear in my text element, but now I don't know how to add other text in with the property number. My code is as follows:

>>>import arcpy
>>>mxd=arcpy.mapping.MapDocument("Current")
>>>lyr=arcpy.mapping.ListLayers(mxd,"300105)[0]
>>>elemlist=arcpy.mapping.ListLayoutElements(mxd,"TEXT_ELEMENT","Sub Title")[0]
>>>rows=arcpy.SearchCursor(lyr.dataSource)
>>>row=rows.next()
>>>elemlist.text=row.getValue("PROPERTY")

I need to have 'Recreational Lease \n Property No:' to precede the Propert Number and don't know how to put that in there??

Outcomes