Allright. This is buggin the heck out of me and (embarrassed) I could use another set of eyes here.
I have this simple lisp to hatch objects, and trying to modify it to go to hatch layer, do it's stuff, and then return to the previous layer.
(defun c:laych (/ CL)
(setvar "cmdecho" 0)
(command "Clayer" "HATCH")
(command "-HATCH" "s" pause "" "") ;<--- (pebkac..or here...?)
(setvar "cmdecho" 1)
(command "layerp")
(princ)
)
Problem is I can't get it to work for other than a "select object" option. It'd be nice to be able to have it work with
-pick an object (single)
-pick internal point
-selection set of objects
I also tried this with a
(setq CL (gervar "clayer"))
.
.
.
(setvar "clayer" CL)
combo, with no luck (thus the "(/CL)" still hangin around.)
TIA