<?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 Re: Add new Text Elements in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537947#M42086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All "CURRENT" means is that your code is referencing the document that is currently loaded into the ArcMap application.&amp;nbsp; This means the code is being run from either the Python window or from a script tool from within ArcMap.&lt;BR /&gt;&lt;BR /&gt;The document that is open should have all your extra stuff, often times tucked away off the page.&amp;nbsp; Your code can call it when/if needed.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I understand.&amp;nbsp; The problem I am running into is the Python Add-In I am developing must be agnostic to any specific .mxd document.&amp;nbsp; I just need the tool to place a text element onto the Layout, especially if it is just an "Untitled.mxd" / vanilla .mxd that has nothing loaded and was just opened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;j&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 14:40:09 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2013-05-15T14:40:09Z</dc:date>
    <item>
      <title>Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537939#M42078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to add a new Text Element to a layout view?&amp;nbsp; I am building a new Python Add-In and this ArcObjects developer is getting frustrated with the amount of limitations I am finding in the arcpy.mapping module.&amp;nbsp; (unfortunately, my development tools have been limited to python)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537939#M42078</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-08T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537940#M42079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently the arcpy.mapping module contains no where near the functionality you can achieve with ArcObjects. There is no way I know of to create a new text element using arcpy.mapping. You can take an existing element and change the size, position, text, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 14:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537940#M42079</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-05-08T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537941#M42080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Currently the arcpy.mapping module contains no where near the functionality you can achieve with ArcObjects. There is no way I know of to create a new text element using arcpy.mapping. You can take an existing element and change the size, position, text, etc.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thought so.&amp;nbsp; Bummer.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really hate to read things like "Oh, arcpy.mapping is a wrapper for ArcObjects" --- it lends one to believe that, okay I should be able to access X, but just a little differently.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;VBA ruled!&amp;nbsp; &lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;.NET/COM is and was a lot of work but made me much more valuable as a developer.&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;Now I get to instruct the user: "hey, first you need to add a text element.&amp;nbsp; ONLY then can this tool I am building for you work."&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 14:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537941#M42080</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-08T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537942#M42081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At 10.1, text and graphic elements can be cloned.&amp;nbsp; So you can author a single element with the font, color, etc and clone when needed elsewhere.&amp;nbsp; Arcpy does not allow you to change text color, font and many other properties directly although you can do it by setting the text string to include tags.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 14:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537942#M42081</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-05-09T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537943#M42082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;At 10.1, text and graphic elements can be cloned.&amp;nbsp; So you can author a single element with the font, color, etc and clone when needed elsewhere.&amp;nbsp; Arcpy does not allow you to change text color, font and many other properties directly although you can do it by setting the text string to include tags.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your input, Jeff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how exactly would that work?&amp;nbsp; I read thru some presentations from ESRI developer summit, but somethings are not fully clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create an existing .mxd with the Text/Graphic elements I wish to have in the "CURRENT" .mxd document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Clone each of these.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Add to the the "CURRENT".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, how do I actually "add" the elements to the "CURRENT" .mxd?&amp;nbsp; I didn't see this method (or probably just missed it).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 14:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537943#M42082</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-09T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537944#M42083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Clone() is a method on the text element or graphic element classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check out the second example on the graphic element class.&amp;nbsp; It builds a dynamic table by cloning graphic lines and text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/GraphicElement/00s300000040000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/#/GraphicElement/00s300000040000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 14:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537944#M42083</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-05-10T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537945#M42084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Clone() is a method on the text element or graphic element classes.&lt;BR /&gt;&lt;BR /&gt;Check out the second example on the graphic element class.&amp;nbsp; It builds a dynamic table by cloning graphic lines and text.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/GraphicElement/00s300000040000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/#/GraphicElement/00s300000040000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I took a look at the example but I'm not understanding how this can help.&amp;nbsp; Now, I can setup an .mxd with all of the elements I need, and yes i can clone them, but how am I supposed to use these in the "CURRENT" mxd document?&amp;nbsp; That is, I still cannot add any graphic or text element to a map document.&amp;nbsp; (or can I and I am missing something from the example?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be clear: just how can the Clone() method help me to add TextElements to a totally vanilla (aka, "CURRENT") .mxd?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 18:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537945#M42084</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-14T18:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537946#M42085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All "CURRENT" means is that your code is referencing the document that is currently loaded into the ArcMap application.&amp;nbsp; This means the code is being run from either the Python window or from a script tool from within ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The document that is open should have all your extra stuff, often times tucked away off the page.&amp;nbsp; Your code can call it when/if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537946#M42085</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-05-15T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537947#M42086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All "CURRENT" means is that your code is referencing the document that is currently loaded into the ArcMap application.&amp;nbsp; This means the code is being run from either the Python window or from a script tool from within ArcMap.&lt;BR /&gt;&lt;BR /&gt;The document that is open should have all your extra stuff, often times tucked away off the page.&amp;nbsp; Your code can call it when/if needed.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I understand.&amp;nbsp; The problem I am running into is the Python Add-In I am developing must be agnostic to any specific .mxd document.&amp;nbsp; I just need the tool to place a text element onto the Layout, especially if it is just an "Untitled.mxd" / vanilla .mxd that has nothing loaded and was just opened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;j&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537947#M42086</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-15T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537948#M42087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a way to access ArcObjects from python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a Stack Exchange thread titled: How do I access ArcObjects from Python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python"&gt;http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;that gives some leads on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It IS, however, both exasperating and annoying to keep hearing things along the lines of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"python scripting is not intended to do things like &amp;lt;fill in simple task here&amp;gt;".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 16:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537948#M42087</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2013-05-15T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add new Text Elements</title>
      <link>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537949#M42088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is a way to access ArcObjects from python.&lt;BR /&gt;&lt;BR /&gt;There is a Stack Exchange thread titled: How do I access ArcObjects from Python?&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python"&gt;http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python&lt;/A&gt;&lt;BR /&gt;that gives some leads on this.&lt;BR /&gt;&lt;BR /&gt;It IS, however, both exasperating and annoying to keep hearing things along the lines of&lt;BR /&gt;"python scripting is not intended to do things like &amp;lt;fill in simple task here&amp;gt;".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eeew.&amp;nbsp; heh -- thanks for the info, I will take a stab at it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;j&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 18:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-new-text-elements/m-p/537949#M42088</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-15T18:29:42Z</dc:date>
    </item>
  </channel>
</rss>

