<?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: Graphic Element Table Placement in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309396#M3234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I think I understand Heather.&amp;nbsp; You threw me a curve, I think (Good Pitch).&amp;nbsp; You are referring to GTE from Production Mapping Correct, if so, I am referring to Core Tables using arcpy.mapping, but you do bring up an interesting point, perhaps using GTE is better than normal tables in Layouts, especially with all of the 10 idiosyncrasies with normal tables.&amp;nbsp; Hopefully some of these will be fixed with SP1, though, but definitely worth a test case for sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Jeff, I still need to try out your code, every other week I am working with the mapping module, but thanks for your snippet, you only align Position Y, and only with a single Graphic Element.&amp;nbsp; Python is a lot more fun to work with than my other week which is straight server, too bad the two could not be more integrated, hint Python API &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 16:33:30 GMT</pubDate>
    <dc:creator>TedCronin</dc:creator>
    <dc:date>2010-09-10T16:33:30Z</dc:date>
    <item>
      <title>Graphic Element Table Placement</title>
      <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309392#M3230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When trying to set the elementPositionX and elementPositionY with Tables in a layout, the bounding box is larger than the table and thus the element is not being placed as expected.&amp;nbsp; If I move the bounding box right on the table (Note: There are bugs with doing this in Layout (Nims have been created)), when a script is run, the bounding box is expanded back out to its original location thus does not get placed as one would expect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can create a video and upload to YouTube for a better explanation, if you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Video here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.youtube.com/watch?v=lKK8YZ-pd7Y"&gt;http://www.youtube.com/watch?v=lKK8YZ-pd7Y&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 00:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309392#M3230</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-09-02T00:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Element Table Placement</title>
      <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309393#M3231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Ted,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldnt make out your code in the video, but I was able to get this basic script to work. Can you let me know if it works for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\temp\forum\table.mxd")
elm = arcpy.mapping.ListLayoutElements(mxd, "GRAPHIC_ELEMENT")[0]
elm.elementPositionY = 1
mxd.save()
del mxd&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a table layout element that had a buch of space under it, resized the layout element to match the bottom of the table, then ran the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309393#M3231</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2021-12-11T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Element Table Placement</title>
      <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309394#M3232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hey Ted,&lt;BR /&gt;&lt;BR /&gt;I couldnt make out your code in the video, but I was able to get this basic script to work. Can you let me know if it works for you?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\temp\forum\table.mxd")
elm = arcpy.mapping.ListLayoutElements(mxd, "GRAPHIC_ELEMENT")[0]
elm.elementPositionY = 1
mxd.save()
del mxd&lt;/PRE&gt;&lt;STRONG&gt;I created a table layout element that had a buch of space under it, resized the layout element to match the bottom of the table&lt;/STRONG&gt;, then ran the code.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the resize is not what I would want to have to do manually.&amp;nbsp; When the Table is added, it should behave like a Report in that the bounding box is on top of the outside extent. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
import os
import datetime
from arcpy import env as ENV
from arcpy import mapping as MAP

ENV.overwriteOutput = True

ENV.workspace = r"C:\1GIS\Test"

wrksp = ENV.workspace

mxd = MAP.MapDocument (r"C:\1GIS\Test\MappingModule.mxd")

for elm in MAP.ListLayoutElements (mxd):
&amp;nbsp;&amp;nbsp;&amp;nbsp; print elm.name
&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.name == "ReportMap":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elementHeight = 2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elelmentWidth = 2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elementPositionX = 6.5
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elementPositionY = .5
&amp;nbsp;&amp;nbsp;&amp;nbsp; if elm.name == "TableMap":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elementHeight = 2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elelmentWidth = 2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elementPositionX = .5
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elm.elementPositionY = .5

mxd.save ()

del mxd

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is really just test code for playing with the mapping module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:48:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309394#M3232</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2021-12-11T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Element Table Placement</title>
      <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309395#M3233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ted,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What are the format setting you are using when creating your table? (Expand Cells, Auto Fit Cells etc...)&amp;nbsp; Any details on how you created your table is helpful in figuring out why the GTE envelope is not matching the table extent.&amp;nbsp; Also, maybe look into using the Layout Rules, its similar to Show Element Rule Manager.&amp;nbsp; You can define the relative placement of surround elements on your page layout.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 14:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309395#M3233</guid>
      <dc:creator>HeatherEisan</dc:creator>
      <dc:date>2010-09-10T14:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Element Table Placement</title>
      <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309396#M3234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I think I understand Heather.&amp;nbsp; You threw me a curve, I think (Good Pitch).&amp;nbsp; You are referring to GTE from Production Mapping Correct, if so, I am referring to Core Tables using arcpy.mapping, but you do bring up an interesting point, perhaps using GTE is better than normal tables in Layouts, especially with all of the 10 idiosyncrasies with normal tables.&amp;nbsp; Hopefully some of these will be fixed with SP1, though, but definitely worth a test case for sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Jeff, I still need to try out your code, every other week I am working with the mapping module, but thanks for your snippet, you only align Position Y, and only with a single Graphic Element.&amp;nbsp; Python is a lot more fun to work with than my other week which is straight server, too bad the two could not be more integrated, hint Python API &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 16:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309396#M3234</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2010-09-10T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Element Table Placement</title>
      <link>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309397#M3235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ted,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what I assumed you were using (GTE).&amp;nbsp; It would be useful to use when creating tables in your map layout.&amp;nbsp; You may want to consider it or at least play around with it to see if it suits you needs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/graphic-element-table-placement/m-p/309397#M3235</guid>
      <dc:creator>HeatherEisan</dc:creator>
      <dc:date>2010-09-13T14:41:19Z</dc:date>
    </item>
  </channel>
</rss>

