|
INTERACTION
The INTERACTION statement defined a user-define or system Interaction variable, to be used by the GPP user to enter information at runtime.
INTERACTION (<format-name>) "prompt" variable = init-value ;
INTERACTION (<format-name>) "prompt" system-variable;
Only one Interaction variable may be defined in each INTERACTION statement, and it cannot be an array.
The format name must be one of the available 19 GPP formats, or the special keywords MULTI_CHOICE and BOOLEAN_, and must be enclosed in parenthesis.
The MULTI_CHOICE pseudo format is used for interaction variables that should be displayed to the user as a List-Box with multiple choices (For example, Flat and Nested).
The BOOLEAN_ pseudo format is used for Yes/No interaction variables. See more details below.
The prompt string will be displayed to the GPP user at runtime, typically explaining the nature of the Interaction variable and asking for input. Like any GPP string, it may be up to 256 characters long.
For user-defined interaction variables, a default initial value for the variable must also be specified (the = sign is mandatory). This is the value GPP will use if the user does not make any changes to this variable. For system interaction variables, initial values are not allowed - the initial values for system variables can only be set from the DF2 file.
For numerical variables, any data entered by the GPP user at runtime is used as is, and never multiplied by the unit factor, even if the interaction variable uses the COORDINATES format.
GPP2 maintains the value of Interaction variables between toolpath runs (but not between sessions). For instance, suppose an Interaction variable STARTNUM has the default initial value of 0. Now suppose the user changes this value to 100 and runs the post-processor to generate an output file. Now he runs the same post-processor again on a different toolpath - the Interaction variable will show a value of 100. Re-loading the post-processor or closing GPP and starting it again will reload the default value defined in the INTERACTION statement. Note, however, that changes made to interaction variables in the GPP2 program will not have any effect on the next run - only the values entered by the user are maintained.
No more than 50 Interaction statements can be defined in each GPP program.
Example
INTERACTION (CHARACTER) "Enter Name:" Name = "Cimatron";
INTERACTION (COORDINATES) "Enter Size:" Size = 100;
INTERACTION (SEQUENCING) "Sequencing Start Number:" SEQ_START;
|