Share

acedSetCfg

C++

int acedSetCfg(
    const ACHAR * sym, 
    const ACHAR * val
);

File

acedads.h

Description

Writes application data to the AppData section of the acad.cfg file.

Note: This function is obsolete and will be removed in a future release. Move all CFG stored settings to the registry or elsewhere.

The sym argument must be a string of the following form:

"AppData/application_name/section_name/.../parameter"

For example, the following code adds the line (or modifies the value of an existing line) param1=8 to the AppData section of the acad.cfg file.

acedSetCfg("appdata/param1", "8");

The following code adds the line param2=10 to the AppData/sec1 section:

acedSetCfg("appdata/sec1/param2", "10");

Parameters

Parameters Description
sym String (132 characters maximum length) that specifies the section and parameter to set
val Value to set (347 characters maximum length)

Was this information helpful?