Original Post Date: December 2010
To determine, and set, options in the tool settings box, use the set item keyin. For example, let's suppose you want a keyin to turn on or off the Join Elements option found with the Place SmartLine tool.
Ensure the tool is started, then key in set item toolsettings. When the key-in dialog is expanded, the fourth column will show a set of named variables for the active tool.
You can then set those variables by adding =value to the end of the keyin. For example, to turn the Join Elements option off, the keyin would be set item toolsettings join=0 and to turn it on the keyin is set item toolsettings join=1
You can use these keyins in your scripts, macros, and when you're creating custom buttons or tools.
or copy paste is good too as well as save to favourites