HOW TO

Remove a view, chart, table, or layout from a project by editing the .apr file

Last Published: April 25, 2020

Summary

This article shows how to remove a view, chart, table, or layout from 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 the name of the document you wish to remove.
  3. Take note of the number in the corresponding View.#. For example, to remove View2 you would note the number in View.410.

    Code:
    (View.410
    Name: "View2"
    CreationDate: "Thursday, May 31, 2001 04:21:17"
    GUIName: "View"
    Win: 411
    CSMgr: 412
    DocExts: 414
    DocExts: 415
    Graphics: 416
    Theme: 423
    Theme: 450
    Theme: 720
    LastScale: 4289035647.73108150000000
    Dpy: 417
    TOCWidth: 150
    CoordPrecision: 2
    )

  4. Start from the beginning of the .apr and perform a new search for Doc: #. In this example, Doc: 410 would return the following:

    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: "654789325489"
    SelColor: 1823
    GUINames: 1824
    GUINames: 1825
    GUINames: 1826
    GUINames: 1827
    GUINames: 1828
    GUINames: 1829
    GUINames: 1830
    TocWidthScale: 1.00000000000000
    )

  5. Remove the "Doc: #" line.
  6. Save the file.

Article ID:000004103

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