TLIB                                                        Menu: (MWALS) MWUTL
===============================================================================
Edits the T-junction library.

         1.  (CHAR) a-add T-solution to lib., e-edit T lib., p-plot T lib.
      if option `a' is selected:
         2.  (IND) "leg" of T
         3.  (Y/N) confirm choice ?
         4.  (IND) "head" of T
         5.  (Y/N) confirm choice ?
         6.* (NUM) "leg" layer No. n to penetrate to "head" layer No. ?
         7.* (NUM) "leg" layer n to "head" layer n : join-'y', no join-'n'
         8.  (Y/N) confirm saving NEW T-junction? <y>
      if `y' is replied:
         9.  (Y/N) solution for both "head" sides (shown side - "n")? <y>
      if `e' is selected (prompt 1):
         2.  (Y/N) specify walls by indication ('y') or by name ('n') ?
      if `y' is replied:
         3.  (IND) "leg" of T
         4.  (Y/N) confirm choice ?
         5.  (IND) "head" of T
         6.  (Y/N) confirm choice ?
      if `n' is replied:
         3.  (CHAR) wall name (or type) for T "leg" (lnxxxxx, 1-8 char.)
         4.  (CHAR) wall name (or type) for T "head" (lnxxxxx, 1- 8 char.)
      for both replies:
         7.  (IND) select/deselect T-solution in square OR pick option
      if ALL is selected:
         8.  (CHAR) for all T-solutions: s-select, d-deselect,
                                                     r-reverse selection
      if SAVE is selected:
         8.  (Y/N) confirm saving ? <y>
      if QUIT is selected:
         8.  (Y/N) confirm quitting ? <n>
      if DEFAULT is selected:
         8.  (IND) default T-solution
         9.  (Y/N) confirm choice ?
      if MODIFY is selected:
         8.  (IND) T-solution to modify
         9.  (Y/N) confirm choice ?
      if `y' is replied:
         10.       to define T-solution on-line: press <ENTER>
         11. (NUM) "leg" layer No. n to penetrate to "head" layer No. ?, 0-exit
         12. (NUM) "leg" layer n to "head" layer n : join-'y' , no join-'n'
         13. (Y/N) confirm saving T-solution ? <y>
      if DELETE is selected:
         8.  (IND) T-solution to delete
         9.  (Y/N) confirm choice ?
         10. (Y/N) delete another T-solution ?
      if a white rectangle is selected:
         8.        to define T-solution on-line: press <ENTER>
         9.  (NUM) "leg" layer No. n to penetrate to "head" layer No. ?
         10. (NUM) "leg" layer n to "head" layer n : join-'y' , no join-'n'
         11. (Y/N) confirm saving T-solution ? <y>
      if `y' is replied:
         12. (Y/N) solution for both "head" sides (shown side - "n")? <y>
      if option `p' is selected (prompt 1):
         2.  (Y/N) specify walls by indication ('y') or by name ('n') ?
      if `y' is replied:
         3.  (IND) "leg" of T
         4.  (Y/N) confirm choice ?
         5.  (IND) "head" of T
         6.  (Y/N) confirm choice ?
      if `n' is replied:
         3.  (CHAR) wall name (or type) for T "leg" (ln-xxxxx, 1-8 char.)
         4.  (CHAR) wall name (or type) for T "head" (ln-xxxxx, up to 8 chars)
      for both options:
         7.  (Y/N) display T-solution library before creating plot file? <n>
      if reply to prompt 7 is `y':
         8.  (Y/N) confirm creating plot file <y>
         9.  (CHAR) name for plot file (1-8 char.)

Description
Option `a'  add T-solution to library:
This option enables you to define a NEW T-solution online, i.e., that has not
been predefined. It will remain the default T-solution until the end of the
work session or until a new T-solution is defined using either this option or
option `e' (DEFAULT or MODIFY). The T-solutions are saved in the TRULES.ARC
file in the ARCA directory.

Indicate and confirm the wall to be the "leg" of the T-junction, and the wall
to be the "head" of the T-junction. The system highlights the first layer of
the "leg", and asks you which layer no. of the "head" should penetrate to layer
no. 1 of the "leg", and if the solution of this layer should be of the "join"
type or of the "not-join" type (open path or no path between the layers
respectively). The last two prompts are repeated by the number of "leg" layers,
while this number is updated from prompt to prompt. The system then asks you to
confirm the saving of the NEW T-solution, and if your definition applies to
both sides of the "head" wall or to the defined side only.

NOTE: This command will NOT overwrite your current working screen, but, in
order to work with this option you have to have both a "leg" and a "head" for
the NEW T-solution on screen.

Option `e'  edit the T-solution library:
This option opens a display file containing the T-solution library. You are
prompted to define the solution by either indicating the participants of the
required T-solution, or using the names of the participants (the default). If
the participants are on the screen, you may indicate and confirm the "leg" and
the "head" from the T-solution library. If not, you may type both the names of
the "leg" and "head" of the T-solution, e.g., l2, l3, etc.

The system then displays all the relevant T-solutions, closing and saving your
current file, and opening a special display file ($T$LIB). Each T-solution
appears in a square with its number written inside.

On the bottom of the screen area, there are two squares framed in white,
describing both side options of "head" with the requested "leg". In addition
to the T-solution squares, there are six options:

           ALL                  DEFAULT
           SAVE                 MODIFY
           QUIT                 DELETE

You are prompted to select T-solutions from a square or to pick an option.
The color of the square frame symbolizes the status of the T-solution:

  green = active T-solution
    red = non active T-solution (will not appear when executing \tjun command)
   blue = the current default T-solution; there may be two defaults:
          one that relates to the first layer of the "head" and the other that
          relates to the last layer of the "head" (the squares' number appears
          either in the upper-left part of the square or in the lower-left part).
 yellow = a T-solution marked for deletion

The ALL option allows you to act in one of three ways:
     `s'  select all the T-solutions,
     `d'  deselect all the T-solutions, and
     `r'  reverse the current status of selection.
Use SAVE or QUIT to update your library or restore your original library
respectively.

The SAVE option keeps the current status of the walls in the TRULES.ARC file
as the current library for display, and then restores the original file. You
will be asked to confirm before execution.

The QUIT option saves the solution library and then opens the file you were
working on before activating this command. You will be asked to confirm before
execution.

The DEFAULT option allows you to change the system T-solution default. This
applies when using \tjun command. You are asked to indicate and confirm the
square of the T-solution to be the default. The system changes the new
default's frame color to blue, and the former default to green. You may define
up to two defaults for a T-solution library: one for the set of solutions
defining the solutions for the first layer of the "head", and one for the set
of solutions defining the solutions for the last layer of the "head".

The MODIFY option asks you to indicate and confirm the square of the T-solution
to modify. The system will zoom in on the requested T-solution after you press
<ENTER>. The first layer of the T-solution "leg" is highlighted, and you are
asked which layer no. of the "head" should penetrate to layer no. 1 of the
"leg", and if the solution of this layer should be of the "join" type, or of
the "not-join" type (open path or no path between the layers respectively).
Those last two prompts are repeated by the number of the "leg" layers, while
this number is updated from prompt to prompt. The system then asks you to
confirm saving the T-solution, and if your definition applies to both sides
of the "head" wall or only to the defined side.

The DELETE option asks you to indicate and confirm the T-solution square for
deletion. The frame of the T-solution selected for deletion changes to yellow.
The system then asks if you wish to delete more T-solutions. The solutions are
not actually deleted until the SAVE option is selected and can be unmarked by
clicking again on the square.

If you select one of the white frames on the bottom of the screen, you can
define, on-line, a new T-solution for one side of the "head" or for both sides.
The method is the same as for option `a', but here you will see the resulting
T-solution to be added to the library, and it will become the default. The set
of prompts is exactly the same as in option `a'.

Option `p'  plot the T-solution library:
This option enables you to create a plot file from your T-solution library, in
order to produce a hard copy. First define the requested library, either by
name (default) or by indication (if the "leg" and "head" are on screen). If
you are defining by name, enter the name of the "leg" and the "head". You are
then asked to confirm the creation of the plot file from your T-solutions
library. You may define a plot file name of up to eight characters long.

NOTE: The system opens a temporary file to display
the current wall library. The file you were working on is saved and closed,
and the system file $T$LIB is opened. This file is always displayed in plan
and parallel view. After a "legal" end of the command, the system restores
your original working file with your last view. If, by chance, you get "stuck"
in $T$LIB file and your original file is not restored, execute the \rslib
command and the system will automatically restore your original file.
