ContentsIndexHome
PreviousUpNext
IAimmsSolverConnection::GetEnvironment Method

Get environment variable value.

virtual void GetEnvironment(
    char * name, 
    char * result, 
    _LONG_T len
) = 0;
Parameters 
Description 
char * name 
Buffer for the requested environment variable. The length of this Buffer, including the terminating '\0' character, may not exceed 32. 
char * result 
Buffer in which the value of the environment variable is copied by AIMMS. At most len characters will be copied, including the terminating '\0' character. If the requested environment variable name does not exist then result is not changed. 
_LONG_T len 
The maximum length of result

The GetEnvironment method does not have a return value.

The GetEnvironment method can be used to retrieve values of environment variables which are set by AIMMS. Currently, AIMMS uses the following environment variables: 

 

AIMMSROOT 
Root of AIMMS installation directory structure 
AIMMSBIN 
Directory containing the AIMMS executable 
AIMMSSOLVERS 
Directory containing the solver DLLs 
AIMMSCFG 
Directory containing configuration and license files 
AIMMSHELP 
Directory containing help files 
AIMMSDOC 
Directory containing documentation 
AIMMSUSERDLL 
Directory containing user defined DLLs 
AIMMSLOG 
Directory containing log files 
AIMMSPROJECT 
Directory containing current AIMMS project 
Copyright © 1993–2016 by AIMMS B.V. All rights reserved.