Jump to content

Recommended Posts

Posted

Hi guys,

 

I'm just wondering in AutoCAD: if you're in one of any layout tabs where you can then have multiple viewports for different views, how can you use the mspace command to enter that specific viewport?

 

More specifically, I have two viewports in a layout. I want one of them to zoom to one area, and the other viewport to zoom to another. How can this be accomplished in AutoLISP?

 

(P.S. the layout is created from scratch, after which I use (command -vports pt1 pt2) to create one viewport each.)

 

Thanks,

Jonathan Handojo

Posted

Use (setvar 'cvport n)

(vports) returns a list of available viewports and you can cycle thru them, except viewport 1 which is the Paperspace itself.

 

 

Posted

No matter how many viewports you have in a layout even if they're on top of each other you can cycle through all of them with Ctrl+R.

SPACESWITCH (System Variable) Controls whether model space can be accessed by double-clicking in a layout viewport.

Value - Description

       0 - Prevent access to model space

       1 - Allow access to model space

  • Like 2
Posted
9 hours ago, Stefan BMR said:

Use (setvar 'cvport n)

(vports) returns a list of available viewports and you can cycle thru them, except viewport 1 which is the Paperspace itself.

 

 

 

Thanks for that Stefan. That did the trick!

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