HOW TO

Change the active document in a project by editing the .apr file

Summary

This article shows how to change the active document in a project by editing the .apr file with a text editor.

Procedure



  1. Open the .apr in a text editor such as WordPad or Notepad.

    Warning:
    Always make a backup before making any edits to an .apr file.

  2. Search for "ActiveDoc".
  3. Take note of the "ActiveDoc:" number. In the example below it is ActiveDoc: 410.

    Code:
    (Project.2
    Name: "Sample.apr"
    CreationDate: "Thursday, May 31, 2001 03:21:46"
    GUIName: "Project"
    Win: 3
    CSMgr: 4
    DocExts: 5
    VisGUIWidth: 70
    Doc: 6
    Doc: 239
    Doc: 180
    Doc: 402
    Doc: 41
    Doc: 410
    ActiveDoc: 410
    Buttons: 990
    Buttons: 991
    Buttons: 992
    Dependencies: 993
    Scripts: 994
    Prefs: 995
    WorkDir: 1822
    WinX: 11
    WinY: 4
    WinW: 623
    WinH: 472
    SerialNumber: "234568415662"
    SelColor: 1823
    GUINames: 1824
    GUINames: 1825
    GUINames: 1826
    GUINames: 1827
    GUINames: 1828
    GUINames: 1829
    GUINames: 1830
    TocWidthScale: 1.00000000000000
    )


  4. Change this to any of the numbers in the "Doc:" list. This is found just above "ActiveDoc:". In this example they are:

    Code:
    Doc: 6
    Doc: 239
    Doc: 180
    Doc: 402
    Doc: 41
    Doc: 410


  5. Save the file.

Article ID:000004116

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic