RRS1987 Posted February 1, 2012 Share Posted February 1, 2012 hello, I have one drawing, which has 79 layouts itself. I want to delete some same objects for all layout. Is there any command to edit all layout at one time. thanks in advance. Quote Link to comment Share on other sites More sharing options...
Dadgad Posted February 1, 2012 Share Posted February 1, 2012 If you erase an object from modelspace it will be deleted from all of the layouts. Quote Link to comment Share on other sites More sharing options...
RRS1987 Posted February 1, 2012 Author Share Posted February 1, 2012 Hi, thanks Mr.dadgad. I have template in each layout, which having keyplan, notes, barscale and block attribute. Actually i want to edit keyplan, notes, barscale , which is not in block. thanks once again. I waiting for your valuable assistance. Quote Link to comment Share on other sites More sharing options...
MSasu Posted February 1, 2012 Share Posted February 1, 2012 So, if the items occur in each Layout, then I think that an AutoLISP routine should be the answer, but only if those items have consistent properties. The drawback of this solution is that may take longer to develop than to do the modifications manually. You can try to modify one layout, copy the changed items into Clipboard and parse each Layout to replace them - this will work also if those have consistent properties along Layouts. Regards, Mircea Quote Link to comment Share on other sites More sharing options...
Dadgad Posted February 1, 2012 Share Posted February 1, 2012 I would expect that what you really want to do is to turn off certain layers in different layouts, leaving only those layers turned on which are appropriate in each layout. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 1, 2012 Share Posted February 1, 2012 If all the objects are at the same location then pretty easy use a script starting with (command "setvar" "ctab" "layoutname") the do your thing (command "erase" "W" 0,0 50,35 "") bit of a pain 79 times. Anyway heres a start via lisp sometimes people have nearly what you want (setq doc (vla-get-activedocument (vlax-get-acad-object))) (vlax-for lay (vla-get-Layouts doc) (setq plotabs (cons (vla-get-name lay) plotabs)) ) (setq plottablist (acad_strlsort plotabs)) (setq len (length plottablist)) (setvar "osmode" 0) (setq K 0) (repeat len (setq name (nth K plottablist)) (princ name) (if (/= name "Model") (progn (setvar "ctab" name) (command "zoom" "E") ;put what you want to here as many lines as you want like (command "erase" "W" 0,0 50,35 "") ) ;end progn ) ; end if (setq K (+ K 1)) (setq ss2 '()) ) ; end repeat yeah I know foreach plotab 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.