Set TARGET for all new viewports created with MVIEW? AutoCAD 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using AutoCAD 2023. In paper space, I always use the "MVIEW - NEw" command to create new viewports. It's super convenient -- it takes me to model space and lets me click 2 points to draw a frame around whatever geometry I want to see, and it takes me right back to paper space to select a scale and place it. But I've just recently noticed an issue with it.
Sometimes, when I use CHSPACE for an object within that viewport to bring it into paper space, the elevation / Z coordinate of that object ends up being something other than 0, even though it was 0 while it was in model space, and I've learned that it has to do with the TARGET variable for that viewport. Whenever I create a new viewport with "MVIEW - NEw", I don't get the chance to set the TARGET for the viewport. It seems like it's automatically set based on whatever geometry happens to exist in model space at that moment. This would normally be fine, except for the fact that sometimes the Z coordinate of the viewport TARGET is not 0 (particularly if there are any 3D solids in model space), which means that using CHSPACE for anything inside the viewport will cause it to end up with weird Z coordinates after it's moved to paper space. This is a very minor issue, but it seems like something that should be fairly simple to resolve (although I may be naive).
Thus far, I've found this forum post with someone looking for the same solution (but for a different problem). It looks like it's about Civil 3D, so the only thing I was able to try from this post was using "DVIEW - POints" to reset the TARGET and Camera values (after entering MSPACE through the viewport). Although this does successfully reset the target for the viewport, I have two main issues with this approach:
- Changing the target point with DVIEW changes the view of the viewport (it centers it at the new target), which means I now have to manually adjust the viewport to refocus on what I had it set to before, which eliminates the convenience of using "MVIEW - NEw".
- This would have to be manually done for each viewport -- even less convenient.
The only thing that I've come up with thus far to ensure that every new viewport has the TARGET at 0,0,0 is to create a named view with that target, and when using MVIEW, selecting "NAmed" instead of "NEw" and creating a viewport of that named view, and then manually adjusting the borders to whatever geometry I want to show. But this just doesn't seem like the most efficient way to accomplish this.
Something I just tried is running "MVIEW - NAmed" and creating a viewport with that named view (with the target at 0,0,0), and it seems that all viewports that I create immediately after using "MVIEW - NEw" have the same target (0,0,0). I'm not sure if this is a consistent behavior, or if it's just dumb luck, but I'll take it for now.
Maybe I'm just too dead-set on using "MVIEW - NEw" because of how quick and convenient it is. But I'm curious, when I use "MVIEW - NEw", instead of it just zooming out to view the entirety of model space and setting the TARGET automatically based on how much geometry is there (and where that geometry is), is there some way to manually (and consistently) set the TARGET as I'm creating the viewport? Or pre-modify some settings / system variables that will make the TARGET consistent and predictable when I use "MVIEW - NEw"?
Thanks in advance!
@j-dubya-merchant - Your post title was modified to add the product name and version and to increase findability - CGBenner