getcfg
setcfg


(getcfg  varname)
(setcfg  varname  value)

These 2 standard AutoLISP functions have been extended to read and write *any* settings value, as shown in BricsCAD's Settings dialog;
so any system variable (either stored in dwg database, or in Registry), as well as any other (usually Registry-based) setting can be retrieved and assigned.

This allows access to and modifying any settings value, regardless of their (internal) nature and storage, providing a unified handling of otherwise inaccessible settings.

Arguments

'varname' the settings name to be queried or set

'value' the string (!) value to be assigned to the setting

Return

(getcfg) : the queried value as string, if successful, NIL otherwise
(setcfg) : the assigned value as string, if successful, NIL otherwise

Example

(getcfg "ImportProductStructure")
(setcfg "ImportProductStructure" "2")

(getcfg "ExportProductStructure")
(setcfg "ExportProductStructure" "1")

Remarks

Please note, as like for standard (getcfg) and (setcfg), any value is passed and returned as string !
Integer or Double values need to be converted to / from strings then (be careful for precision of double values).



©  Bricsys NV. All rights reserved.