Bizkit Posted June 10, 2010 Posted June 10, 2010 Looking for a quick way to take all the layers from a dwt and draw a line on each layer. (No particular area) Quote
MSasu Posted June 10, 2010 Posted June 10, 2010 This may help you: (defun c:LineInLayers( / OldOsm LayerName TabPoz) (setq OldOsm (getvar "OSMODE")) (setvar "OSMODE" 0) (setvar "CMDECHO" 0) (setq TabPoz T) (while (setq LayerName (tblnext "LAYER" TabPoz)) (setq LayerName (cdr (assoc 2 LayerName))) (entmake (list (cons '0 "LINE") (list '10 0.0 0.0 0.0) (list '11 1.0 1.0 0.0) (cons 8 LayerName))) (princ (strcat "\nLayer " LayerName " processed!")) (setq TabPoz nil) ) (setvar "OSMODE" OldOsm) (princ) ) Regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.