Hozizontal and Vertical Viewport Synchronisation using "Synchronize Viewports" express tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have 0 background in autolisp or in any kind of coding, but I am pretty sure that it is fairly easy to do what I want for someone that have experience. I did made some research and had a look into the .txt vpsync file and aspace and I am confident it can be done (but not by me!)
Here is the situation:
I have a floors plan in MS that can be from 1000m2 to 20000m2 with a grid and axis bubbles on the outer perimeter. The problem is when I want to zoom on a particular area of the floor plan in PSpace I loose all view on the bubble, making it difficult to spot where we are zooming.
Possible solution:
It is easy for me to prepare a layout template where there will always be a Master viewport in the center and 4 thinner viewport on the perimeter where the axis bubble could appear. There might be other way around, but to simplify the coding I could also position the views of the perimeter viewports so that the center of the gridline bubble intersec the center X or Y of the viewport. (depending if it is the sides or top/bottom)
With this in place, "all" I need is a Synchronize Viewports "vpsync" command that would now ask for 3 selections
-Master viewport
-Vertical viewports
-Horizontal viewports
and then, align the selected viewport with the master while keeping the original "center X" coordinates for lateral viewports and the original "center Y" coordinates for top/bottom viewports.
To simplify the coding I could also live with to different autolisp. One for the vertical and the other for the lateral.
i hope someone can help me with my problem. It would be amazing!