This example demonstrates the use of &GBSTR to retrieve, edit, and file a part in GRIP batch mode. The GPA &GBSTR returns the part name MYPART.PRT which was previously passed as a parameter string using the BATCH/RUN command.
$$
$$ Declarations
$$
$$RETRIEVE THE FILE
$$
FETCH/PART,&GBSTR
$$
$$ TURN OFF LAYER 10
$$
LAYER/INACT,10
$$
$$ SAVE CURRENT FILE
$$
FILE/PART