Using a lisp command to call the "Settings" dialog
Is there a way to bring up the "Settings" dialog using a lisp command with a particular section expanded? I'm wanting to replicate what the esnap option does when using the menu bar and choosing Settings>Esnap Settings.... I know in Acad 2002 the following brings up the drafting settings dialog with the OSnap tab in focus (command ".+dsettings" "2"). Thanks for your reply.
0
Comments
-
There is the OSNAP command which brings up the correct section of the settings.
To call this command from lisp:
[code](initdia) ; Required to get the dialog-version of the command.
(command "osnap")[/code]0 -
Brent,
You can use _SETTINGSSEARCH
[code](command "'._SETTINGSSEARCH" "OSMODE")[/code]
you can also use this to go to particular categories within settings
[code](command "'._SETTINGSSEARCH" "Coordinate input")[/code]
The command is case sensitive, so if you don't get what you want check spelling and case.
Possibly depends on what it is you want. Roy's method would work in BricsCAD or AutoCAD without a change in code, _SETTINGSSEARCH would allow you to jump to BricsCAD only settings.
Regards,Jason Bourhill
0 -
Thanks to the both of you for your responses. I used the "'._SETTINGSSEARCH" option and it works perfect.0
This discussion has been closed.