ILoveMadoka Posted May 22 Share Posted May 22 I wrote this as a quick fix to an issue... It selects all the blocks on the current tab and moves them to an existing layer (MyLayer) It works fine for me.. (defun c:tbv () (setq xxx (ssget "X" (list '(0 . "INSERT") (cons 410 (getvar "ctab"))))) ;;select all blocks in current tab (command "_change" xxx "" "p" "la" "MyLayer" "") (princ)) How can I modify this to have it only apply to SPECIFIC blocks? ie: block names = Door, Window, Sink I saw some posts with something like this but I could not make it work (setq xxx (ssget "X" (list '(0 . "INSERT") (2 . "Door,Window,Sink") (cons 410 (getvar "ctab"))))) Please advise.. Quote Link to comment Share on other sites More sharing options...
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.