Good day everyone,
Using 2021. I'm using split screen (side-by-side viewports in model space), but would like to zoom the right-hand viewport based on a window that I define in the left-hand viewport (or vice versa). Is there a way to do this? It would make the split screen feature so much more useful.
Apologize if this has been answered before, I tried searching. If so, please send me the link.
Thanks!
[ The subject line of this post has been edited to include the product name by @handjonathan ]
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
@gideon.botesB4GMB wrote:... would like to zoom the right-hand viewport based on a window that I define in the left-hand viewport (or vice versa). ...
Please select the "Accept as Solution" button if my post solves your issue or answers your question.
Thank you for responding to my question.
While the named viewports are very useful when working in certain situations - like working on a large file with named views for specific angles, this is really not what I am looking for.
Working in multiple files would make named viewports counterproductive for what I am trying to achieve. I am looking for a more flexible solution that allows you to quickly navigate with multiple viewports, using an overview as basepoint. While technically that seems the same, creating named views in many multiple files will take a lot of time and I'd be better off just navigating with a single viewport.
@gideon.botesB4GMB wrote:
...quickly navigate with multiple viewports, using an overview as basepoint...
I apologize, but your request seems ambiguous - please elaborate further.
I suggest you search the Autodesk APP Store or search for a LISP Program.
Maybe the Visual LISP, AutoLISP and General Customization Forum may already have something.
Please select the "Accept as Solution" button if my post solves your issue or answers your question.
I believe if you want to have such functionality it would have to be programmed, perhaps the people in the customization boards are better suited to help you.
But even then it is not that simple, imagine you have 3 model viewports do you want to be able to activate the zoom in all three of them or only in a single one. Do you wish that the other 2 viewports adjust their view automatically or do you want to select which viewport needs to adjust its view based on your input in another vp. Do you wish the function to detect this behaviour and act based upon mouse inputs or would a command with several follow-up steps be sufficient for this? Or do you want to set up a dedicated 1st-2nd relationship between 2 viewports and have any third viewport be unaffected by your function?
It might also be a great feature to put on the idea boards.
Unfortunately there are no idea boards for basic autocad, so you could try a site like Augi to get your idea pushed on their wish list or post it to the idea board of another autocad based product (like Civil or Mechanical)
Thank you for the response.
Best I can explain it maybe is by analogy. In HTML, before tabs were a thing, you used to get iframes - where, in a browser you have two panes/frames/sub-windows in a given browser window. The left hand side would have links. If you click on the link in the left pane, the right pane would go to the link. In this way, the left was used for navigation, and the right pane was used for the actual results.
My idea was, that in AutoCAD, you could maybe do something similar - i.e. do 'window zoom' on the left viewport, instead of the same viewport zooming to that window, the right viewport would go to the view defined by the window you drew in the left window. I hope that makes sense. It's the best way I can explain it.
On second thought, I made a little screen capture here to illustrate. Should be clear now.
In the end, it just seems you're right - I would have to go for automation as the functionality does not exist. Nothing else to do. I'll take a look at Augi, thanks.
A lateral thought..
You might find that the F7 button (zoom dynamic) does something similar to what you desire but in a single viewport.
That certainly looks like it could be automated with an AutoLisp routine. Do you always have only two viewports, so that a routine could presumably find the other one, or might you have more, so that it would need you to move into the right one to Zoom in on, yourself?
EDIT: If it's always only 2, and if I am correct that in that case the CVPORT values for them are always 2 and 3, this seems to work, in very limited testing:
(defun C:ZOV (/ p1 p2); = Zoom Other Viewport [of only 2 Model-Space Viewports]
(setvar 'tilemode 1); must be in Model Space
(setq
p1 (getpoint "\nCorner of area to Zoom in on in other Viewport: ")
p2 (getcorner p1 "\nOpposite corner: ")
); setq
(setvar 'cvport (- 5 (getvar 'cvport))); move into other Viewport
(command "_.zoom" "_non" p1 "_non" p2)
(princ)
)
There may be a way to check whether there are only 2, but if more than that, what should it do?
@peter_thomson wrote:
... the F7 button (zoom dynamic) ....
??? F7 toggles the grid [by default, that is, unless you've forced a different meaning on it].
I stand humbled by your presence, oh Wise Wielder of LISP.
Just kidding.
However, @Kent1Cooper, I really am impressed. This was exactly what I needed, and will be very useful when I work on large layouts, where I want to keep track of the overview while working on the details. I hope it didn't take you too long to write.
I think the feature to check for more than two viewports is unneeded. A mere luxury of a variable that I can easily control.
Thank you for helping out!
While Kent is right - F7 switches the grid - I like this type of thinking. You're right, Zoom Dynamic does what I want, perhaps that is a possible approach to coding it. Thanks for your post!
Can't find what you're looking for? Ask the community or share your knowledge.