for row in cursor: text = textwrap.dedent(str(row.Overview).strip()+str(row.Project).strip()) for elm in aprcpy.mapping.ListLayoutElements(map, "TEXT_ELEMENT"): if len(text)==len(text): if elm.name == "Text1": elm.text = text[0:1000] if elm.name == "Text2": elm.text = text[1001:]
What does text = '{0} {1} {2} denote?
text = '' cursor = arcpy.SearchCursor(Project) for row in cursor: text = '{0} {1} {2} '.format(text, str(row.Overview).strip(), str(row.Project).strip())
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.