Drawing coding

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).

Algorithm of drawing creation

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 codes

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.

Control codes

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 typeDefinition
Line startS
Line endK
Line closureU

Table 15.2. User-defined elements

Element typeNameLevel
LineA10
LineB11

Table 15.3. Sample codes

PointCodeDescription
1ASLine A start
2ALine A continuation from point 1
3A BSLine A continuation from point 2, start of line B
4B BSLine B continuation from point 3, start of another line B
5BK ATermination of line B from point 4, and continuation of line A from point 3
6BContinuation of the previous line B from point 4
7AUClosure and termination of line A from point 5
8BKTermination of line B from point 6