Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using a loop to repeatedly do these actions while building various viewports:
(setq LayoutName (last (GetLayoutOrdered))) ; Get last Layout
(setvar 'ctab LayoutName)
(command "._pspace" "._-vports" Pi Pf )
(setq vp (entlast))
(command "._Mspace" )
(command "_.ZOOM" "w" PBG PHD)
(command "._pspace" )
Variables Pi, Pf, PBG and PHD change during the REPEAT loop.
My issue was with the "Mspace" command; it did not select the last viewport I just created. It remembered other previous viewports.
So my question is: how to specify the viewport that will be activated with "Mspace"?
Solved! Go to Solution.