Hi
I want to create a mobile cache with ArcGIS 10. I made a model with the Mobile Tools Create Mobile Map.
Then I export the model to Python Script.
Here is the code from my script:
# Set the necessary product code
import arceditor
# Import arcpy module
import arcpy
# Load required toolboxes
arcpy.ImportToolbox("C:/Programme/ArcGIS/Mobile10.0/ArcToolbox/Toolboxes/Mobile Tools.tbx")
# Local variables:
test_mxd = "D:\\ArcGIS\\test.mxd"
Cache = "D:\\ArcGIS\\Cache"
# Process: Create Mobile Map
arcpy.CreateMobileMap_mobile(test_mxd, Cache, "", "-20630 316430 25748 355640", "", "")
print arcpy.GetMessages()
When I run the Model, the Cache is generated, but the pythonscript doesn't work properly!
The message in the Python shell says:
Executing: CreateMobileMap D:\ArcGIS\test.mxd D:\ArcGIS\Cache # "-20630 316430 25748 355640" # #
Start Time: Fri Jan 21 10:22:51 2011
Succeeded at Fri Jan 21 10:22:52 2011 (Elapsed Time: 1,00 seconds)
And as result the folder with the Cache is empty!
Does anybody know the reason why this is so!
Help is a appreciate!