Obsolete. Writes application data to the AppData section of the acad20xx.cfg file
Supported Platforms: Windows, Mac OS, and Web
Signature
(setcfg cfgname cfgval)
- cfgname
-
Type: String
Section and parameter to set with the value of cfgval. The cfgname argument must be a string of the following form:
AppData/application_name/section_name/.../param_name
The string can be up to 496 characters long.
- cfgval
-
Type: String
Application data. The string can be up to 512 characters in length. Larger strings are accepted by setcfg, but cannot be returned by getcfg.
Return Values
If successful, setcfg returns cfgval. If cfgname is not valid, setcfg returns nil.
Examples
The following code sets the WallThk parameter in the AppData/ArchStuff section to 8, and returns the string “8”:
(setcfg "AppData/ArchStuff/WallThk" "8") "8"