English

How To: Customize the ArcView 3.x startup procedure

Summary

ArcView 3.x runs several scripts and loads several project files during start up. You can modify each of these files to customize the start up procedure.

Procedure

Be sure you make a backup copy of any of the files listed below before you modify them.

See the Related Information section for additional helpful articles.

  • Application startup file

    This file defines the $HOME and $TEMP environment variables, displays the ArcView banner, and on Windows it starts the DDEServer. You can use the startup file to define environment variables that are only available to ArcView, display a custom banner, create subdirectories and/or files, and/or to start other applications.

    This file is located in the ArcView installation directory under ..\av_gis30\arcview\etc.
    Note:
    You can use an ASCII text editor to modify the application startup file. After saving your changes, make an additional backup copy, for if you reinstall ArcView, this file will be overwritten.
  • System default.apr

    The system default.apr loads all the default scripts and GUIs. Although you can modify the system default.apr, it is recommended you make any customizations to the user default.apr (as described below). You can use the avenue request MakeSysDefault to modify the system default.apr. See the ArcView Help for more information.

    This file is located in the installation directory under \av_gis30\arcview\etc.
    Note:
    You can use an ASCII text editor to modify the system default.apr. After saving your changes, make an additional backup copy, for if you reinstall ArcView, this file will be overwritten..
  • User default.apr

    The user default.apr stores customizations to ArcView, such as scripts, GUIs, and extensions.

    This file is stored in the user's $HOME directory. If $HOME is not defined, the system $TEMP directory is used.
     
  • Appl.Initialize script

    After ArcView loads the system and user default files, and before it opens any project, it executes the script appl.initialize. This script opens the project file whose name is passed in an argument. If no project is specified, a blank prject is created. For example, to open myprojects.apr, you can type the following at a DOS prompt:
    C:>arcview d:\gisdata\myproject.apr
    You can start ArcView with a specific project by using the above syntax in either the user or system default project.

    You can also modify this script to set up a TEMP folder.
     
    A. Create a directory on a client machine.
    B. Start ArcView on the client machine.
    C. Open a new script window.
    D. Select Load System Script from the Script menu.
    E. Select the Appl.Initialize script from the list and click Select.
    F. Scroll to the bottom of the file and place the cursor after 'end' on the last line.
    G. Press the Return key twice to create some space after the last line.
    H. Type the following:
    System.SetEnvVar ("TEMP","<local drive>:\<localdirectory>")
    System.SetEnvVar ("TMP","<local drive>:\<localdirectory>")
    I. Compile the script.
    J. Select Properties from the Script menu.
    K. Rename the script to Appl.Initialize and click OK.
    L. Move the cursor to an empty area on the button bar and double-click to open the Customize window.
    M. Click Make Default.
  • Project file

    The project file contains scripts, GUIs, documents (views, layouts), data, and extensions. It also stores information such as document window placement and size, open or closed document status, and how data is displayed in a view.
  • Project Startup script

    A project's startup script runs after all data is loaded and extensions are turned on. You can use a project's startup script to connect to datasources, ask a user to add data or create a layout, prompt for a password, and so forth. To set the startup script for a project, select Properties from the Project menu.

Related Information