Zouhuaming Posted March 13, 2013 Share Posted March 13, 2013 I want to layiso layers[FITTINGS,PIPE,FLOW]. What is the command? I don'twant to use mouse to sellect the layer. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 13, 2013 Share Posted March 13, 2013 Something like (defun c:fpl () (command "_layiso" "fittings,pipe,flow" "") ) Quote Link to comment Share on other sites More sharing options...
Tharwat Posted March 13, 2013 Share Posted March 13, 2013 Try this ... (defun c:Test (/ l e) (while (setq l (tblnext "LAYER" (not l))) (if (not (member (cdr (assoc 2 l)) '("FITTINGS" "PIPE" "FLOW"))) (entmod (subst (cons 62 (- (cdr (assoc 62 (setq e (entget (tblobjname "LAYER" (cdr (assoc 2 l))))))))) (assoc 62 e) e ) ) ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
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.