Is there a way work with those package files within Runtime and NOT in arcmap. It seems very inconvenient for where we have to use these packages, especially for geoprocessing.

Also, is there a way to create/add/remove shape files within those packages?

If anyone has any references, please let me know. This seems to be the trickiest part about Runtime IMO.

Thanks and Regards, Kev

2 Answers 2


My understanding is that ArcMap is the tool for authoring packages. The purpose of a package is to encapsulate maps, layers, and geoprocessing tools that are to be consumed by Runtime. Runtime is not intended to be an authoring or package manipulation SDK. So ... ArcMap = Author, Runtime = consumer.

That being said, packages are simply zip archives. You could do some investigation and experimentation to figure out the formats and probably build some packages by hand.

Adding a shapefile to a package can be done by adding it as a layer in ArcMap. Then you simply rebuild the package from your modified map. If you have collection of shapefiles that are related, you can put them all in one map document (as individual layers) and export as a package (now containing those shapefiles). In WPF Runtime, create a new layer in XAML for each shapefile/layer in your ArcMap doc. In the XAML, reference the package and the layer name that corresponds to a particular shapefile.

If you installed the WPF SDK in the normal location, you can go to this folder and find an interactive sample application:

C:\ArcGIS\WPF1.0\SDK\Samples\Sample Application\Sample Application.exe

Dig into the code behind to see how packages and layers are used to add data to the map.


If you need to use maps or geoprocessing "locally", not in a connected environment, you must obtain a package from somewhere, or you must create them in ArcGIS ArcMap. Can't get away from that. Today, the Local Runtime story begins with ArcMap.

Yes, there is a way to add/remove shapefiles in Runtime. There is the notion of "Dynamic Layers". There are APIs that allow you to specify a workspace and a feature class, and this becomes a datasource that can be added to the map. Go here to see how it works.

I hope this helps you get going.

  • Is it possible to create the MPK with ArcGIS Server ?
    – user3120
    Feb 6, 2013 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.