asos2000 Posted June 17, 2010 Share Posted June 17, 2010 Hi all I want to select an object in all layouts then change entity for? Example select all viewports in all layouts save old value of DXF code 90 add 147456 to old value thanks Hasan Quote Link to comment Share on other sites More sharing options...
asos2000 Posted June 18, 2010 Author Share Posted June 18, 2010 This was my start (defun c:vps () (setq vprtslct (ssget "X" '((0 . "VIEWPORT")))) (foreach x vprtslct ) but I lost in foreach and how to select viewports in all layouts Quote Link to comment Share on other sites More sharing options...
David Bethel Posted June 18, 2010 Share Posted June 18, 2010 You cannot (entmod) a viewport. You will need to step thru the selection set. -David Quote Link to comment Share on other sites More sharing options...
asos2000 Posted June 19, 2010 Author Share Posted June 19, 2010 Thanks david any else solution to do what I want? Quote Link to comment Share on other sites More sharing options...
David Bethel Posted June 19, 2010 Share Posted June 19, 2010 [b][color=BLACK]([/color][/b]and [b][color=FUCHSIA]([/color][/b]setq i -1 ss [b][color=NAVY]([/color][/b]ssget [color=#2f4f4f]"X"[/color] '[b][color=MAROON]([/color][/b][b][color=GREEN]([/color][/b]0 . [color=#2f4f4f]"VIEWPORT"[/color][b][color=GREEN])[/color][/b][b][color=MAROON])[/color][/b][b][color=NAVY])[/color][/b][b][color=FUCHSIA])[/color][/b] [b][color=FUCHSIA]([/color][/b]while [b][color=NAVY]([/color][/b]setq en [b][color=MAROON]([/color][/b]ssname ss [b][color=GREEN]([/color][/b]setq i [b][color=BLUE]([/color][/b]1+ i[b][color=BLUE])[/color][/b][b][color=GREEN])[/color][/b][b][color=MAROON])[/color][/b][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]setq ed [b][color=MAROON]([/color][/b]entget en[b][color=MAROON])[/color][/b] id [b][color=MAROON]([/color][/b]cdr [b][color=GREEN]([/color][/b]assoc 69 ed[b][color=GREEN])[/color][/b][b][color=MAROON])[/color][/b][b][color=NAVY])[/color][/b][b][color=FUCHSIA])[/color][/b][b][color=BLACK])[/color][/b] I don't know how you set the group 90 status from the command line. -David 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.