using lisp to control bricscad settings
I want to be able to automate setting up system settings using lisp. The settings that "setvar" can't access.
I know how to search eg
I know how to search eg
(command "'._SETTINGSSEARCH" "Coordinate input")
But, if I wanted to change "Coordinate input", how do I do that?
0
Comments
-
I am not sure about bricscad but in autocad you would do this via REGISTRY.0
-
Phill,
"Coordinate input" is a settings group, it's not a configurable value. The items listed under it can e.g.
[code](setvar "ORTHOMODE" 1)[/code] to turn _Ortho on
[code](setvar "OSMODE" 37)[/code] to turn on _Endpoint, _Center, and _intersection object snaps.
getenv & setenv provide ways to set and retrieve environment variables. e.g.
[code](setenv "ACAD" (strcat (getenv "ACAD") ";C:\\MyPath"))[/code]
to add a search path to the end of the support file search path. Note changes to setenv may not take effect until the next time you start BricsCAD.
It is quite possible to break things playing with the above. Recommend that you look into creating a user profile. This allows you to play with these type of settings relatively safely. Also it may offer you an easier way to do what you're wanting to do.
Regards,Jason Bourhill
0
This discussion has been closed.