Package a PMF


PurposeThis sample demonstrates how to package a Published Map File (PMF) to a file geodatabase format.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open the solution file in Visual Studio.
  2. Check that the .pmf to be packaged and the output directory specified in the code are correct for your situation.
  3. Build the project.
  4. Start ArcMap.
  5. Click Customize, then click Customize Mode.
  6. Click the Commands tab and select the Add-in Controls category.
  7. Click and drag Package a PMF from the right onto a toolbar.
  8. Click the Add-in button to package the data in the PMF map to C:\temp\MyPMFPackage.

PackagePMF.cs Code showing how to package a .pmf to a file geodatabase format.
Download the C# files
PackagePMF.vb Code showing how to package a .pmf to a file geodatabase format.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcView: Publisher ArcView: Publisher
ArcEditor: Publisher ArcEditor: Publisher
ArcInfo: Publisher ArcInfo: Publisher