I need to put in a specific text into a text element. The initials of the user who built the map.
With arcpy I am trying to set the text element with dynamic text. If I put
<dyn type="user"/>
in the user text element it gives me, correctly, the user's user name. I want to use the user name in a python dictionary to put the users initials instead.
dictUserElmt = { "jperez" : "JP" }
Using arcpy to read the text of my text element, textElement.text, returns (again correctly)
u'<dyn type="user"/>'.
How do I get the actual output of the dynamic text "jperez" so I can use my dictionary to have the text element set to "JP".
I'm sure my wording is confusing because I am confused on how to approach. Thanks.
element.textcall as well. – Chad Cooper Mar 02 '12 at 19:44