Jump to content

make a layout a new named view


samifox

Recommended Posts

Pretty sure this has been asked before, you can get properties of a named view so should be able to make a viewport version.

 

(setq  doc (vla-get-activedocument (vlax-get-acad-object))) ; open database
(setq allviews (vla-get-views doc))
(vlax-for each allviews (vla-get-name each))
;(vlax-for each allviews (vlax-Dump-Object each))

Link to comment
Share on other sites

If you are working through a maximized viewport you can create a new saved view, either with, or without a saved layer snapshot, and you can either save the whole view, or define it with a crossing window.

Not sure if that helps you or not, but sounds pretty close to what you are asking about. :|

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