Take a scene offline with ArcGIS Pro

You can use ArcGIS Pro to consolidate your scenes into a single mobile scene package (.mspk) that can be taken offline. Each package can contain scenes, elevation sources, and any data necessary for your users to continue working when connectivity is poor or non-existent. Mobile scene packages can include basemaps, data layers, 3D scene layers, tiled layers (.tpkx,.vtpk), tables, relationship classes, locators, and elevation sources. Each package adheres to a common scene definition, allowing you to transport your scenes and data across ArcGIS.

With ArcGIS Pro 2.6 (or later) you can include online layers and tables in your scenes, such as traffic information, weather conditions, or a large company data-set. If your user's device has network connectivity they can take advantage of these online layer. If the connection is unavailable, users can continue to work with the scenes and data that is stored locally in the mobile scene package.

Create a mobile scene package with ArcGIS Pro

  1. Locate the ArcGIS Pro tool called Create Mobile Scene Package in the Data Management Toolbox. You can use this to create a mobile scene package containing any number of scenes.
  2. If needed, set an expiration date on the mobile scene package. This is available with ArcGIS Pro 2.4 (or later) with the ArcGIS Publisher extension license.
  3. If you want include online layers and tables in the scenes, you need to check on the Reference online content. This is available with ArcGIS Pro 2.6 (or later).
  4. Save the package to ArcGIS Online, ArcGIS Enterprise, or to a folder on your device.
  5. You can download the mobile scene package from ArcGIS Online or ArcGIS Enterprise directly onto your device using the ArcGIS Runtime API. Alternatively, you can copy the package directly to your device (or sideload it).

Open the mobile scene package

To create the mobile scene package object, pass the mobile scene package file path to the mobile scene package constructor. Load the package and access its collection of scenes. Passing the scene to the scene view will initiate loading the scene, its layers, and data.

Handle mobile scene package expiration

Mobile scene packages, created with ArcGIS Pro 2.4 (or later), can have an expiration date set. This gives the author more control over the lifetime of the package's data. For example, it will allow you to do the following:

  • Provide data to third-party contractors that will expire at the end of a contract.
  • Indicate to your users that the data is now obsolete.

Use the ArcGIS Pro tool, create a mobile scene package to set an expiration date/time, an expiration message, and data access options. Setting expiration requires an ArcGIS Pro Publisher extension license.

As an ArcGIS Runtime developer, there are three possible outcomes when you try to load a mobile scene package:

  1. You have full access to the mobile scene package and their scenes. This situation occurs if the package has been created without any expiration properties or if it has not expired.
  2. You have full access to the mobile scene package and their scenes, even though the scenes and their data have expired. You will be warned that the package is out of date.
  3. You cannot access the mobile scene package and their scenes because it has expired. In this case, the package will fail to load and you will not be able to access its scenes and data.

These three outcomes are managed by the mobile scene package load process. No extra workflow or code paths are required to accommodate this.

If you want to provide your users with extra information, you can retrieve the expiration details from the expiration property on the mobile scene package. For example, you could display how many days remain before the package expires by doing the following:

  1. Load the mobile scene package.
  2. Read the expiration property on the mobile scene package.
  3. Confirm that it has not expired.
  4. Get the expiration date.
  5. Calculate the number of days between today and the expiration date. Report the number of days remaining.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.