Automating Program Development with Scripts


Automating with Windows Batch Files

You can automate GRIP program development using batch files. With the appropriate switches and arguments you can compile, link, or execute a GRIP program. For Windows platforms, we supply MS-DOS batch files.

The batch files are located at "UGII_BASE_DIR/ugii/gripbatch". The batch files start the GCAL and the NX image. The GCAL image is located at "UGII_BASE_DIR\ugopen\gcal". With the provided information, you can also customize and develop your own batch files. You can use the "gripbatch" files in two ways: Compile and Link or Execute a GRIP Program. The syntax for both tasks is listed below.

Compiling and Linking a GRIP Program

One use of the gripbatch batch file is to compile and/or link GRIP programs using the GCAL image, which is located at "UGII_BASE_DIR/ugopen/gcal".

Syntax

gripbatch {[-compile] [-link]}

[-erlst]
[-device:<listing_device>]
[-name:<output_file_name>]
[-dir:<directory_name>]
[-list]
filespec

Executing a GRIP Program

Another use of the gripbatch batch file is to execute GRIP programs using the NX image.

Syntax

gripbatch -r

[-device:<listing_device>]
[-name:<output_file_name>]
[-dir:<directory_name>]
filespec
["string"]

Switches

Any item with a "-" in front of it, is a switch. Switches must follow the command and are not order dependent. Items without a "-" in front are arguments to the command. Arguments must be given in the order indicated above.

Brackets

Arguments in [] brackets are optional, do not type the [] brackets. At least one of the arguments enclosed in {} brackets must be specified, do not type {} brackets.