Jump to content

Recommended Posts

Posted

Looking for a quick way to take all the layers from a dwt and draw a line on each layer. (No particular area)

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...