<?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: Text does not obey anchor point when contents changed in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337206#M3660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can think of 2 possible courses of action.&lt;/P&gt;&lt;P&gt;1. Use rectangle text and make it big enough to fit the most text you're likely to have, and anchor it where you want.&lt;/P&gt;&lt;P&gt;2. Use the point text, and reset the anchor point position as part of your ArcPy script. I don't know enough about ArcPy to know how to do that, or how easy or complex it might be, but I'm sure someone here could offer suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 18:37:59 GMT</pubDate>
    <dc:creator>DavidBarnes</dc:creator>
    <dc:date>2015-05-05T18:37:59Z</dc:date>
    <item>
      <title>Text does not obey anchor point when contents changed</title>
      <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337203#M3657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to position a text element in the bottom-left corner of my map, but having a problem that seems similar to these.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.esri.com/message/420863"&gt;Print Service not honoring Anchor Points&lt;/A&gt;​​&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.esri.com/message/220882"&gt;Data Driven Page Name Location Issues&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.esri.com/message/76624"&gt;Dynamic Text in Data Driven Pages won't stay put&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically, I want to replace the text using ArcPy; however, despite that I made sure the text element is anchored at the bottom-left, when I change the contents, it behaves as if the anchor is in the &lt;EM&gt;top&lt;/EM&gt;-left, and text sprawls off the bottom of the page:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94719" alt="textelem.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/94719_textelem.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Is this expected behavior?&amp;nbsp; What am I missing? Do text elements simply not respect (at least the vertical aspect of) the anchor point; does it anchor only the first line; does the anchor not update when text is changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can probably position it myself in the script, but I'd like to know if there's a better way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337203#M3657</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-05-05T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Text does not obey anchor point when contents changed</title>
      <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337204#M3658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will help, but here are some thoughts:&lt;/P&gt;&lt;P&gt;Are you using polygon text or point text?&lt;/P&gt;&lt;P&gt;You might try setting the text alignment properties; go into the text properties where you can set both vertical and horizontal alignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337204#M3658</guid>
      <dc:creator>DavidBarnes</dc:creator>
      <dc:date>2015-05-05T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Text does not obey anchor point when contents changed</title>
      <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337205#M3659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's regular/point text; I had forgotten about the vertical alignment setting, thanks. (Arc seems to have quite a few "well-hidden" features....)&amp;nbsp; After setting that, I can change the text manually in ArcMap and it aligns correctly, but unfortunately it still comes out wrong when changed in ArcPy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337205#M3659</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2015-05-05T16:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Text does not obey anchor point when contents changed</title>
      <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337206#M3660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can think of 2 possible courses of action.&lt;/P&gt;&lt;P&gt;1. Use rectangle text and make it big enough to fit the most text you're likely to have, and anchor it where you want.&lt;/P&gt;&lt;P&gt;2. Use the point text, and reset the anchor point position as part of your ArcPy script. I don't know enough about ArcPy to know how to do that, or how easy or complex it might be, but I'm sure someone here could offer suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 18:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337206#M3660</guid>
      <dc:creator>DavidBarnes</dc:creator>
      <dc:date>2015-05-05T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Text does not obey anchor point when contents changed</title>
      <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337207#M3661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact I was looking into #2 when I got your response, and that did it.&amp;nbsp; I save the element position, change the text, then restore the original position:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AddrList = arcpy.mapping.ListLayoutElements(Document, "TEXT_ELEMENT", "AddrList")[0]
position = AddrList.elementPositionX, AddrList.elementPositionY
AddrList.text = "New\ntext\nwith\nmultiple\nlines"
AddrList.elementPositionX, AddrList.elementPositionY = position&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried #1 out of curiosity (it didn't pan out :/).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337207#M3661</guid>
      <dc:creator>BrandonNelson1</dc:creator>
      <dc:date>2021-12-11T15:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text does not obey anchor point when contents changed</title>
      <link>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337208#M3662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, good to hear you found some solution! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 20:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/text-does-not-obey-anchor-point-when-contents/m-p/337208#M3662</guid>
      <dc:creator>DavidBarnes</dc:creator>
      <dc:date>2015-05-05T20:20:50Z</dc:date>
    </item>
  </channel>
</rss>

