C++
ACCORE_PORT int acedGetEnv( const ACHAR * sym, AcString & sResult );
File
acedads.h
Description
Retrieves the value of an environment variable. Looks first in the AutoCAD-specific FixedProfile/General section of the registry:
HKEY_CURRENT_USER Software Autodesk AutoCAD R25.0 <Install ID> FixedProfile General
If an entry is not found in the registry, retrieves the value from the Windows system environment table.
Note: This function will not work for AutoCAD sysvars. For AutoCAD sysvars, use acedGetVar().
If acedGetEnv() succeeds, it returns RTNORM; otherwise it returns RTERROR. This function is the complement of the acedSetEnv() function.
Parameters
Parameters | Description |
---|---|
sym | Input environment variable name to get, which is case sensitive in all environments (AutoLISP, ObjectARX, Managed .NET and VBA/ActiveX) |
sResult | Output of the environment variable value |