getcfg

AutoCad AutoLISP Functions

 
getcfg
 
 
 

Retrieves application data from the AppData section of the acad*.cfg file

(getcfg cfgname) 

Arguments

cfgname

A string (maximum length of 496 characters) naming the section and parameter value to retrieve.

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

"AppData/application_name/section_name/.../param_name"

Return Values

Application data, if successful. If cfgname is not valid, getcfg returns nil.

Examples

Assuming the WallThk parameter in the AppData/ArchStuff section has a value of 8, the following command retrieves that value:

Command: (getcfg "AppData/ArchStuff/WallThk")

"8"

See Also