<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Insert Text ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/insert-text/m-p/51118#M4062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to insert text in my map using arcpy and python. Problem, I do not find how I could do the same as the arcmap function Insert/Text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May someone explain me how ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Mar 2012 16:04:19 GMT</pubDate>
    <dc:creator>OlivierOlivier</dc:creator>
    <dc:date>2012-03-04T16:04:19Z</dc:date>
    <item>
      <title>Insert Text ?</title>
      <link>https://community.esri.com/t5/python-questions/insert-text/m-p/51118#M4062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to insert text in my map using arcpy and python. Problem, I do not find how I could do the same as the arcmap function Insert/Text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May someone explain me how ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2012 16:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-text/m-p/51118#M4062</guid>
      <dc:creator>OlivierOlivier</dc:creator>
      <dc:date>2012-03-04T16:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Text ?</title>
      <link>https://community.esri.com/t5/python-questions/insert-text/m-p/51119#M4063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Arcpy cannot actually make a new map element, it can only manipulate elements already present.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One option, if you need to have a text element occasionally present and occasionally not, is to create the element and 'park' it off the page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code can then puppet the element onstage (so to speak) when it is wanted, to show the text you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Puppeting is easiest by shifting the element position in one dimension, x or y; for instance, parking it 10 inches in the x to the right. When it is needed on the page, subtract ten inches from the x location (and set the text string too, if wanted).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This functionality is obviously very limited, but arcpy is deliberately limited. If you need the code to make new things, you need to call ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is not impossible to do, but there is no toll-free number for such a call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 11:03:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-text/m-p/51119#M4063</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-03-05T11:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Text ?</title>
      <link>https://community.esri.com/t5/python-questions/insert-text/m-p/51120#M4064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the trick. My problem is that I would need many text elements as the objective is to place several attributes describing cables along each of them. Those cables come from a selection done thru a Python script after user selection, each selection generates a new resulting layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, I could use labels, which are suited for that, but I have to do some treatments to build the labels and the label/expression is rather complicated. As I'm creating the cables's layers dynamically, I searched if I were able to load the lxp file from my Python script but it doesn't seem possible either (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/52056-Load-LXP"&gt;here is my other post&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm a bit stuck, not being able to place my own labels, not being able to load lxp expression... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 11:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-text/m-p/51120#M4064</guid>
      <dc:creator>OlivierOlivier</dc:creator>
      <dc:date>2012-03-05T11:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Text ?</title>
      <link>https://community.esri.com/t5/python-questions/insert-text/m-p/51121#M4065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unforetunately, parking items off the page is really the only way to do it at 10.0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your text elements are attribute values, then you may not need to park as many items as you think.&amp;nbsp; I do this all the time with tabular data.&amp;nbsp; I author one element for each column.&amp;nbsp; As I read the data table, I append each value to itself with a newline so the text grows vertically.&amp;nbsp; Set the anchor position to upper left.&amp;nbsp; Check out the following sample that does this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61BF57894"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61BF57894&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.1, you will be able to clone existing text and graphic elements.&amp;nbsp; You author the parent text element with all the appropriate properties like size, color, boldness, etc then clone and move each new element into position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 12:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-text/m-p/51121#M4065</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-03-05T12:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Text ?</title>
      <link>https://community.esri.com/t5/python-questions/insert-text/m-p/51122#M4066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeffrey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, no as easy as I hoped, thanks for this nice example !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 17:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-text/m-p/51122#M4066</guid>
      <dc:creator>OlivierOlivier</dc:creator>
      <dc:date>2012-03-05T17:06:26Z</dc:date>
    </item>
  </channel>
</rss>

