logicals.ssi
The logicals.ssi file is an optional system file in which you can define user logicals. A logical is a name which is used to translate from a logical directory name to the physical path name for a directory. You use logicals to assist with data management and to decrease the length of long directory names.
For example, you could store all your macros in a directory, and then create a logical name called MACROS: which is mapped to that directory. Then, when you need to run your macro and you enter the file name of the macro, you prefix the file name of the macro with the logical as follows MACROS: <filename>.
An example logicals.ssi file is:
# # Note: lines beginning with the hash # character are comment lines. # # An example logicals.ssi file # ---------------------------- MACROS: c:/global/macros/ GEOLOGY: c:/global/data/drillholes/ SURVEY: c:/global/data/survey/pickups/ |
The format for the logicals.ssi file is as follows.
The hash character designates a comment line. Comment lines are useful for describing the content of the file and for describing what you are trying to achieve with the logical. Blank lines are also acceptable as formatting in the file to assist readability. All other lines in the file must correctly define a logical using the following format:
logical_name: white_space physical_path/
Where logical_name: - is the name you want to use as your logical. It must end with a colon character.
white_space - is space or tab characters that separate the logical name and the physical path.
physical_path/ - is the physical path name that you are translating to. It must have end with a forward slash (/) character.
Note: You must have a carriage return character on the last line of the logicals file.
If you do not, the software cannot read the last line of the file.
It is also possible to have a user-defined logical file which takes the same format as that described above. You may want to have a user-defined logicals file if you wish to define more names than are available in a default logicals.ssi file. A user logicals file is specified by defining a user_logicals parameter in the defaults.ssi file.
The software loads logicals into the system in the following order:
- From translat.ssi (contains mandatory system logicals)
- From SSI_ETC:logicals.ssi
- From any logicals file defined via the user_logicals parameter in defaults.ssi