(defun c:ls ()
(while (not e) (setq e (entsel))) ;get layer of item picked
(setq lyr (cdr (assoc 8 (entget (car e)))))
(command "-LAYER" "set" lyr "") (setq e nil)
)
Get your technology fix here. Stay tuned for general tech trends, news, and articles. Work with Autodesk products? I do too! I like to write VBA, lisp and create a lot of custom tools for general consumption too. You'll find all that here and more!
Monday, January 07, 2008
Layer Set by Pick Lisp
Looking for a quick way to set a layer active? Why not pick an object that already exists on that layer! The following lisp code does just that!
Labels:
ACA,
ADT,
AutoCAD,
CAD Management,
Lisp
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment