Change Settings programmatically

 I would like to make sure that the Grid Style is set to "Dotted grid in Sheet/Layout".  How can i make changes to this setting and/or any non-system variable setting in BricsCad programmatically using either Lisp or VBA? Thank you for your time.
Brent Blackwelder