ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Create Mobile Cache

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

This tool creates a mobile cache with a map schema and GIS data for Mobile Project Center (MPC), a component of the ArcGIS for Windows Mobile product, to build a mobile project. Using the map document's current full extent, this tool generates a mobile cache from an input map document. The output is a folder using the map document name as its folder name, a mobile cache containing a map schema, the GIS data, and associated attachments folder (if available).

Usage

    Legacy:

    At version 10.0 this tool was named Create Mobile Map. Parameters have also changed at version 10.1. Scripts and models based on the 10.0 tool will need to be modified to work in 10.1.

  • The tool is available for use only with the Microsoft Windows operating system.

  • By default, this tool generates a mobile cache for all layers within a map document, but only vector layers with global ID based on ArcSDE or file geodatabase data sources can be synchronized between ArcGIS for Windows Mobile field applications and the data source.

  • The output folder must exist prior to tool execution.

  • By default, the tool creates a mobile cache folder including a map schema, the GIS data, and attachments (if available).

  • By default, the extracted extent is based on the map document's full map extent.

  • By default, all layers are extracted into the mobile cache.

Syntax

CreateMobileCache_mobile (input_mapDocument, input_outputFolder, {input_layers}, {input_attachments}, {input_version})
ParameterExplanationData Type
input_mapDocument

The map document to create a mobile cache

ArcMap Document
input_outputFolder

The directory of the output folder

Folder
input_layers
[input_layers,...]
(Optional)

The names of the layers to extract

String
input_attachments
(Optional)

Determines if the attachments associated with feature classes will be extracted.

  • INCLUDE_ATTACHMENTS —The attachments associated with the feature classes will be extracted.
  • NO_ATTACHMENTS —The attachments will not be extracted.
Boolean
input_version
(Optional)

The geodatabase version from which the cache will be generated

String

Code Sample

Create Mobile Cache example 1 (Python window)

Create a mobile cache from a map document with all data and attachments.

import arcpy
arcpy.CreateMobileCache_mobile("C:/CampusMap/Campus.mxd","C:/CampusMap/MobileMap","#","#","#")
Create Mobile Cache example 2 (stand-alone Python script)

Generate a mobile cache with attachments from the selected layers contained within a map document.

import arceditor
import arcpy
Campus_mxd = "C:\\CampusMap\\Campus.mxd"
MobileMap = "C:\\CampusMap\\MobileMap"
arcpy.CreateMobileCache_mobile(Campus_mxd, MobileMap, "PointAttachmentAtCache;LineAttachmentAtCache;PolygonAttachmentAtCache;PointWithoutAttachmentAtCache;LineWithoutAttachmentAtCache;PolygonWithoutAttachmentAtCache;PointWithoutGlobalIDAtCache", "INCLUDE_ATTACHMENTS", "")

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related Topics

  • An overview of the Mobile toolbox
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal