Jump to content

Is there a faster way to set viewport override of layer's color?


Recommended Posts

I currently use this command to change the layer's (lay) viewport override color (col) to grey (252).

(command-s "vplayer" "c" col lay "" "")


Doing this iteratively is so time-consuming that I've been trying to find other ways to do it.  ActiveX doesn't really have a method for doing this.

Link to comment
Share on other sites

You can get all the viewports in a layout, then in a loop change them, a warning if I remember correct the last viewport is PSPACE. So repeat for (- (sslength ss) 1)


(setq ss (SSGET "X" '((0 . "VIEWPORTS")(cons 410 (getvar 'ctab))))))


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.

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