Overview


GRIP Statements

To use GRIP statements, you must abide by the format rules of GRIP and of each statement.

Each GRIP statement uses the same general format as described below:

Major word/parameters

A major word is a specific GRIP function, such as LINE, or LAYER. All objects are defined as a function of a major word. A major word, if followed by any descriptive parameters, must be immediately followed by a slash (/). Major words can be a maximum of six characters long.

Minor words are GRIP parameters which also perform a specific function. Minor words are used in the parameters fields, following a major word and a slash, to modify or specify one of several options of a function.

For example, if you want to create a LINE in GRIP, there are several different ways to define it. If you want the line to be parallel to an existing line you would use the major word LINE and the minor word PARLEL, along with several other parameters to define the line. A minor word may be a maximum of six characters long.

In addition, GRIP can assign values (objects, characters, numbers, etc.) to variables:

Variable=Major word/parameters

Variables may also be used in the parameter field:

Variable 1=Major word/Variable 2, minor word,Variable 3

As an example, the following statement would create a line between the coordinates of its end points. The line created is assigned to the variable LN1 and can now be referred to as LN1 in other statements.

LN1=LINE/0,0,0,1,1,1

LN1 could be deleted using the GRIP DELETE statement an its name:

DELETE/LN1