<?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 DataFrame Element Confusion in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/dataframe-element-confusion/m-p/36836#M1285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am have written a sample script that uses the arcpy.ExportToTiff funciton and here it is for your reference - &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/gallery/file/arcpad/details?entryID=ADD60502-1422-2418-7F4B-94C5430ABF67"&gt;http://resources.arcgis.com/gallery/file/arcpad/details?entryID=ADD60502-1422-2418-7F4B-94C5430ABF67&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that when I wrote it I only did so for projected maps as I calculated the new extent of the data View. The weird thing looking further into this is that I should be able to simplify my code by using the dataframe.elementWidth and elementHeight. So why do these two values get passed from the Layout View data frame where the displayunits and the mapUnits are based on the Data View?&amp;nbsp; I really hope that there is something I am missing, as this doesn't make sense to me. I am relatively new to gp scripting but I think my testing is correct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I tell if the map is in cm, inches or points?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks your any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;import arcpy&lt;BR /&gt;mxd = arcpy.mapping.MapDocument(r"C:\Temp\testDEcDeg.mxd")&lt;BR /&gt;for df in arcpy.mapping.ListDataFrames(mxd):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print df.name&lt;BR /&gt;&lt;BR /&gt;for elm in arcpy.mapping.ListLayoutElements(mxd,"DATAFRAME_ELEMENT"):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print elm.name&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;print df.elementWidth&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Feb 2011 02:26:34 GMT</pubDate>
    <dc:creator>GarethWalters</dc:creator>
    <dc:date>2011-02-16T02:26:34Z</dc:date>
    <item>
      <title>DataFrame Element Confusion</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dataframe-element-confusion/m-p/36836#M1285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am have written a sample script that uses the arcpy.ExportToTiff funciton and here it is for your reference - &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/gallery/file/arcpad/details?entryID=ADD60502-1422-2418-7F4B-94C5430ABF67"&gt;http://resources.arcgis.com/gallery/file/arcpad/details?entryID=ADD60502-1422-2418-7F4B-94C5430ABF67&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that when I wrote it I only did so for projected maps as I calculated the new extent of the data View. The weird thing looking further into this is that I should be able to simplify my code by using the dataframe.elementWidth and elementHeight. So why do these two values get passed from the Layout View data frame where the displayunits and the mapUnits are based on the Data View?&amp;nbsp; I really hope that there is something I am missing, as this doesn't make sense to me. I am relatively new to gp scripting but I think my testing is correct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I tell if the map is in cm, inches or points?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks your any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;import arcpy&lt;BR /&gt;mxd = arcpy.mapping.MapDocument(r"C:\Temp\testDEcDeg.mxd")&lt;BR /&gt;for df in arcpy.mapping.ListDataFrames(mxd):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print df.name&lt;BR /&gt;&lt;BR /&gt;for elm in arcpy.mapping.ListLayoutElements(mxd,"DATAFRAME_ELEMENT"):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print elm.name&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;print df.elementWidth&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 02:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dataframe-element-confusion/m-p/36836#M1285</guid>
      <dc:creator>GarethWalters</dc:creator>
      <dc:date>2011-02-16T02:26:34Z</dc:date>
    </item>
  </channel>
</rss>

