Overview


GPAs and EDAs

In addition to the GRIP statements, two other symbols are provided to give a program access to the settings and parameters of the NX system and individual objects. These are Global Parameter Access Symbols (GPAs) and Entity Data Access Symbols (EDAs). GPAs and EDAs use a different format than GRIP statements. Since they are used to extract and assign data, they are used in conjunction with an equals (=) sign. For example, you can use a GPA to set the color of all newly created objects:

&ENTCLR=&RED

GPAs and EDAs always begin with an ampersand (&) and can be a maximum of six characters long.

Example

To control the color of the lines of the box created in the previous sample program, the following example was created.

ENTITY/LN1,LN2,LN3,LN4

GPA Color Assignment

&ENTCLR=&RED

LN1=LINE/0,0,0,2,0,0
LN2=LINE/2,0,0,2,2,0
LN3=LINE/2,2,0,0,2,0
LN4=LINE/0,2,0,0,0,0
HALT