Environment Variables

This section provides basic information about the environment variables for DELMIA SGPost processor.

Environment Variable Comments
EOF End of file
FILIN.dir Directory of the file to be processed
FILIN.name Name of the file to be processed
FILIN.ext File extension of the file to be processed
FILOUT.dir Directory for the output file
FILOUT.name Name of the output file
FILOUT.ext Output file extension
MACLIB.dir Library directory
MACLIB.name Library name
MACLIB.ext Library directory extension
SGP.warning Number of warnings
SGP.correction SGPOST version index (numeric variable)
SGP.dir[] Directory of processed files (CLFILE, APT, or NCTAPE)
SGP.input[] CLFILE or APT file name
SGP.env Environment text variable, retained after each execution.
SGP.env1 Text environment variable, retained after each execution.
SGP.error Number of errors. A flag indicating whether the error message is copied to the file opened by OPEN1 or to the ISO file (0 = do not copy, 1 = copy)
SGP.from Name of the calling macro or file.
SGP.line[] APT or ISO line read
SGP.linemax Length of the decoded APT line (72 for CATIA)
SGP.linenum Number of the current APT line
SGP.linestart First decoded character of the APT line
SGP.linecont The APT line continues with another instruction
SGP.mode

0: Processing the first file in a list

1: Processing the other files in a list

-1: This execution originates from the EXEC command

SGP.nbloc number of lines created
SGP.nchar Number of characters created
SGP.name Name of the post-processor in the sgpost.def file
SGP.num post-processor number relative to the sgpost.def file The first is indexed as 0, the next as 1, and so on
SGP.output[] Name of the created RUBAN file
SGP.type Type of APT file processed (1=CADDS, 2=CATIA, 3=IBM, 4=ProE, 5=Goelan, 6=Controldata, 7=VX, 8=Unigraphics, 9=MasterCam)
SGP.version SGP version number SGPOST
SGP.win Indicator of selected option w or d (0 or 1)
SGP.process SGPOST process number.
SGP.print Screen print indicator (Option + Input).
SGP.menu Menu display indicator (Option + Menu).
SGP.call Macro call order (1stcall: SGP.call = 1).
SGP.nfile Number of selected files

DELMIA SGPost are trademarks or registered trademarks of Dassault Systemes, All Rights Reserved, in the United States and in other countries.