<?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: Create mobile Cache with standalone pythonscript in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/create-mobile-cache-with-standalone-pythonscript/m-p/147566#M653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are no layers selected after the extent property for the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2011 20:08:38 GMT</pubDate>
    <dc:creator>DuaneWhistle</dc:creator>
    <dc:date>2011-11-04T20:08:38Z</dc:date>
    <item>
      <title>Create mobile Cache with standalone pythonscript</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/create-mobile-cache-with-standalone-pythonscript/m-p/147565#M652</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;SPAN&gt;I want to create a mobile cache with ArcGIS 10. I made a model with the Mobile Tools &lt;/SPAN&gt;&lt;STRONG&gt;Create Mobile Map&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I export the model to Python Script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code from my script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set the necessary product code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arceditor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Load required toolboxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportToolbox("C:/Programme/ArcGIS/Mobile10.0/ArcToolbox/Toolboxes/Mobile Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;test_mxd = "D:\\ArcGIS\\test.mxd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cache = "D:\\ArcGIS\\Cache"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Create Mobile Map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateMobileMap_mobile(test_mxd, Cache, "", "-20630 316430 25748 355640", "", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print arcpy.GetMessages()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the Model, the Cache is generated, but the pythonscript doesn't work properly!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The message in the Python shell says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: CreateMobileMap D:\ArcGIS\test.mxd D:\ArcGIS\Cache # "-20630 316430 25748 355640" # #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Fri Jan 21 10:22:51 2011&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Succeeded at Fri Jan 21 10:22:52 2011 (Elapsed Time: 1,00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as result the folder with the Cache is empty!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know the reason why this is so!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Help is a appreciate!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 07:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/create-mobile-cache-with-standalone-pythonscript/m-p/147565#M652</guid>
      <dc:creator>gerhardhalmenschlager</dc:creator>
      <dc:date>2011-01-21T07:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create mobile Cache with standalone pythonscript</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/create-mobile-cache-with-standalone-pythonscript/m-p/147566#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are no layers selected after the extent property for the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 20:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/create-mobile-cache-with-standalone-pythonscript/m-p/147566#M653</guid>
      <dc:creator>DuaneWhistle</dc:creator>
      <dc:date>2011-11-04T20:08:38Z</dc:date>
    </item>
  </channel>
</rss>

