Synchronize Mobile Cache (Mobile)

Summary

Synchronizes a mobile cache with its data source.

This tool can post updates in a mobile cache to its data source using its originating map document. This tool can also be used to pull changes in the geodatabase to mobile cache.

NoteNote:

The tool is only available for use with Microsoft Windows operating systems.

Usage

Syntax

SynchronizeMobileCache_mobile (input_mapDocument, input_inputFolder, {input_uploadChanges}, {input_downloadChanges}, {input_extent}, {input_layers}, {input_version})
ParameterExplanationData Type
input_mapDocument

The Map Document to synchronize with the mobile cache.

ArcMap Document
input_inputFolder

The directory where the mobile cache is located.

Folder
input_uploadChanges
(Optional)

Choose to upload changes from a mobile cache to the map document:

  • trueChanges from the specified mobile cache will be uploaded to the map document.
  • falseChanges from the specified mobile cache will not be uploaded to the map document.
Boolean
input_downloadChanges
(Optional)

Choose to download data from the map document to a mobile cache:

  • trueWill download changes from data source to the specified mobile cache
  • falseWill not download changes from data source to the specified mobile cache
Boolean
input_extent
(Optional)

The extent can be specified as a string or list using four coordinates (min_x min_y max_x max_y) or by creating an extent object and setting its properties.

Extent
input_layers
(Optional)

The names of the layers to synchronize.

String
input_version
(Optional)

The version of geodatabase for download data.

String

Code Sample

Synchronize Mobile Cache Example 1 (Python Window)

Synchronize all layers in a mobile cache file with its map document.

import arcpy
arcpy.SynchronizeMobileCache_mobile(“c:/map/redlands.mxd”, “c:/cache“, "true","true","","","")
Synchronize Mobile Cache Example 2 (Python Window)

Upload changes from a mobile cache to its map document for all layers, extent.specified.

import arcpy
arcpy.SynchronizeMobileCache_mobile(“c:/map/redlands.mxd”, “c:/cache“, "","true", "", "-1834676.42491188 -398227.791203287 -1833518.27644341 -396875.282178691","","")
Synchronize Mobile Cache Example 3 (Stand-alone Python Script)

Synchronize selected layers in a mobile cache file to its map document, extent specified.

import arcpy
map_document = "C:/map/redlands.mxd"
cache_folder = "C:/Mobile/DeploymentPackages/Redlands"
extent = "-117.274738 34.001452 -117.1115 34.135168"
layers = "qa.SDE.Vents;qa.SDE.Offices"
arcpy.SynchronizeMobileCache_mobile(map_document,cache_folder,"true","true",extract_extent,layers,"#")

Environments

Extent

The extent defining the area to be synchronized.

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

10/6/2011