The GROMA system allows the automatic creation of a line drawing based on point codes.
The coding algorithm is fixed, but the specific codes for the individual lines and functions can be changed in the program configuration (command Settings->Coding: Drawing code setting).
To create a code drawing, it is necessary for the alphanumeric codes defining the drawing prescription to be stored on individual points. More than one code can be on one point, but they must be separated by spaces.
Each code consists of an element code and an optional control code.
Element code means an alphanumeric code of one or more character element indicators, under which the element is defined in the element table. The name should be as short as possible because of the in field coding (one-character name is usually enough). The name can not interfere with the control code names.
The control codes define the action related to the pertinent element defined by the element code. Three actions are defined:
Element initiation: initiation of a new element (start of a new line)
Element termination: element termination (end of line)
Element closure: element closure and closure to the first point
The control codes are connected immediately after the element codes, but without a separating space. They are defined as alphanumeric code with one or more character identifications. The name should be as short as possible because of the in field coding (one-character name is usually enough). The name can not interfere with the control code names.
For example, if you define a line A in the element table and a control code for the line initiation S, then the code AS means the initiation of the line A and a sole code A without the control code means continuing the line A.
The element codes identify the element type according to the definition table, not the specific element name. Therefore, at one moment, more than one line of type A can be in process. If the program finds a code requiring connection to the line A, it will connect it to the last defined line of type A. It gradually returns to the other lines of the same type after terminating the last line.
For example, if you define the code settings like this:
Table 15.1. Control codes
Code type | Definition |
---|---|
Line start | S |
Line end | K |
Line closure | U |
Table 15.2. User-defined elements
Element type | Name | Level |
---|---|---|
Line | A | 10 |
Line | B | 11 |
Table 15.3. Sample codes
Point | Code | Description |
---|---|---|
1 | AS | Line A start |
2 | A | Line A continuation from point 1 |
3 | A BS | Line A continuation from point 2, start of line B |
4 | B BS | Line B continuation from point 3, start of another line B |
5 | BK A | Termination of line B from point 4, and continuation of line A from point 3 |
6 | B | Continuation of the previous line B from point 4 |
7 | AU | Closure and termination of line A from point 5 |
8 | BK | Termination of line B from point 6 |