Jonathan Handojo Posted May 18, 2020 Share Posted May 18, 2020 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 Quote Link to comment Share on other sites More sharing options...
Stefan BMR Posted May 18, 2020 Share Posted May 18, 2020 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. Quote Link to comment Share on other sites More sharing options...
tombu Posted May 18, 2020 Share Posted May 18, 2020 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 2 Quote Link to comment Share on other sites More sharing options...
Jonathan Handojo Posted May 18, 2020 Author Share Posted May 18, 2020 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! 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.