C++
int acedSetEnv( const ACHAR * sym, const ACHAR * val );
File
acedads.h
Description
The acedSetEnv() function sets the value of an environment variable. It stores the data only in the AutoCAD-specific FixedProfile/General section of the registry:
HKEY_CURRENT_USER Software Autodesk AutoCAD R25.0 <Install ID> FixedProfile General
If this function is called on a Windows system environment variable, that variable will be overridden in the AutoCAD section of the registry and will remain overridden until the associated registry entry is manually deleted.
Note: This function will not work for AutoCAD sysvars. For AutoCAD sysvars, use acedSetVar().
If acedSetEnv() succeeds, it returns RTNORM; otherwise it returns RTERROR. This function is the complement of the acedGetEnv() function.
Parameters
Parameters | Description |
---|---|
sym | Input environment variable name, case sensitive in all environments (AutoLISP, ObjectARX, Managed .NET and VBA/ActiveX) |
val | Input environment variable value |