Using GETENV
GETENV retrieves the settings for the current environment. For example, to retrieve the setting for the variable MEDIR, enter the following on the command line:
display (getenv('MEDIR'))
Creo Elements/Direct Drafting returns the current setting.