Originally Posted by
mahesh.darekar
Hi! Friends,
Can anyone help me to create a lisp routine like to call a layer and activate it as current by just typing some short keys. eg. i want to just type wal(for layer name wall) and the layer is activated with the standard linetype,lw,col etc.....
please revert back.
Thanx & Regards,
Mahesh D.
the program is easy, but the formatting is difficult, do you have a list of these shortcuts you wish to use?
Code:
(command "layer" "set" keyin "")
is the command you would use, however, to get it to work with simple shortcuts is far more complicated. I dont know the best way to do it, but you would have to create a defun for each shorcut you wish to use and replace keyin with the name of the layer you wish to set current when the command is called.
you could format it something like this:
Code:
(defun c:shortcut ()
(layercurrent command "full layer name")
)
(defun layercurrent (layername /)
(command "layer" "set" layername "")
)
and just repeat the shortcut program over and over for each layer you wish to shorten