The PROJECT
command has two purposes:
1) It is used to define a project name of 1 to 8 characters. This
name appears on the upper right-hand corner of the screen and printouts.
It is also used to form file names when they are omitted from certain
commands. For example,
PROJ ABC
READ
This defines the project name as "ABC" and reads the Geometry
File "ABC.GF". The project name is also carried in a system
variable named PROJECT.
2) It can be used to manage subdirectories for project files. When
used for this purpose, the first parameter always contains at least
one back slash (\) -- except for one special case noted below.
It is assumed that there is a master project directory in which individual
project directories are located. Optionally, there can be a subdirectory
within the individual project directory which contains all of the
files relevant to GHS. For example, suppose that the master project
directory is C:\PROJECTS. Then, within this directory, there may be
project subdirectories such as 9701, 9702, etc. Within each of these
subdirectories there may be a subdirectory for GHS files, say GHSDAT.
The directory structure would look like the following:
C:
PROJECTS
9701
GHSDATA
9702
GHSDATA
This structure could be created by the following two PROJECT commands:
PROJECT C:\PROJECTS\9701 (GHSDATA)
PROJECT C:\PROJECTS\9702 (GHSDATA)
Of course, it could also be created by operating system commands.
Once the directory structure has been established, the same PROJECT
command can be used to change to the data directory. In other words,
the new directory is created automatically if it does not exist, but
in any case the result is to make the given directory the current
or default directory.
If issued from the keyboard, the above commands will also prompt for
a project name. If you do not want a project name, simply press Enter.
You can also supply the project name as an additional parameter. For
example,
PROJ C:\PROJECTS\9702 (GHSDATA) INTACT
This would create and/or change to C:\PROJECTS\9702\GHSDATA and also
define the project name as "INTACT".
Another automatic feature when this PROJECT command is issued from
the keyboard appears if there are any files in the project data subdirectory
with extensions of ".RF", in which case their names will
be listed on the screen before the prompt for the project name appears.
This makes it easy to pick a project name by pressing the up arrow
key and moving to the desired file before pressing enter. Once the
project name is defined in this manner, it is only necessary to give
the EDIT (F4) or RUN (F5) command and press Enter to edit and Run
the file respectively.
After a project master directory has been established, a particular
project subdirectory can be selected interactively by giving the command
in the following form:
PROJ C:\PROJECTS\
Note that the parameter must end in a back slash. This command first
changes to the master directory C:\PROJECTS; then it lists the subdirectories
and prompts for the subdirectory name. At this point the name can
be typed in or the up arrow can be pressed to pick a project subdirectory
from the list. If a new name is typed in, a new subdirectory will
be created.
When any of these project directory operations are performed, the
program remembers the name of the project master directory, subdirectory
and data directory name (if any). Thereafter, these names are implied
when omitted. For example,
PROJ \9702
Assuming that the previous commands have been issued, this will change
to C:\PROJECTS\9702\GHSDATA.
Similarly, the command
PROJ \
will change to the last-used project subdirectory and (optionally)
data directory.
And, finally, a special case is the PROJECT command without parameters:
PROJ
This changes to the last-used master directory and prompts for the
project subdirectory to be entered.
The program "remembers" project directory names by recording
them in a special file named GHS.PRJ which is located in the program
directory. While it is not ordinarily necessary to do so, you can
erase this file (causing the project directory names to be "forgotten")
by the command,
PROJ OFF\ |
|
Back |
|