- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
tldr, is there an easy way to save where a viewport is 'looking at' in model space, and apply that to a different viewport?
I'm in the process of creating a lisp routine that assists in replacing a drawing's old title block with a newer version. In this process, I'm saving any data or objects I need to save from the old layout, deleting the layout, purging, and importing the new title block from a template.
The old layout's viewport and the new template's viewport are ever so slightly a different size and shape, so I can't just copy the viewport object. I thought I had it with the 'Center property, but that seems to be a geometric center in paper space and not a model space view center.
The only thought I had was to create a rectangle polyline that matches the outline of the old viewport, adding it to a selection set, and sending it to model space. I'd also save the 'CustomScale of the old viewport. Then, after the purge and import from template, I could just zoom to the rectangle polyline and apply the 'CustomScale zoom factor.
Or, similarly, create a point object at 'Center instead of a rectangle matching the boarder.
But both seem crazy convoluted, and I'm hoping autoLISP has a different solution.
As always, thanks for any input!
Solved! Go to Solution.