Jump to content

Simple routine request


asos2000

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

 [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

Link to comment
Share on other sites

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...