English

How To: Edit objects in an .apr file

Summary

An .apr file is an Object Database stored in ASCII text format, and can be edited with any standard text editor.

Procedure

Warning:
Make a copy of your .apr file under a different name. You may need to revert to this backup copy in the event your edits corrupt the .apr file in any way.

  1. Check the structure of the object.

    Each object is bound by a set of parenthesis. The first line of an object contains the open parenthesis, an object identification type, a period, and a unique object index number. The last line of an object contains the close parenthesis. The lines in between store the object’s elements. Example:

    (IDType.UniqueIndexNumber
    ElementType: Value
    )

    This is a File Name object similar to an object that might define a project’s working directory:

    (FN.234          
    Path: “c:/windows/temp”
    )

  2. Edit objects.

    To remove elements in an object, just remark them out. Example:

    (FN.234 
    REM Path: “c:/windows/temp”
    )

    Lines beginning with REM in an APR are ignored when the project is loaded.

    Warning:
    Never comment out (insert REM) or delete objects within an object, as other objects in the database may reference them and may cause a segmentation violation.