TheSwamp

Code Red => VB(A) => Topic started by: hardwired on March 31, 2008, 09:33:24 AM

Title: Modelspace coordinates from paperspace viewports?
Post by: hardwired on March 31, 2008, 09:33:24 AM
Hi,

How can i access the modelspace coordinates from paperspace viewports?

Is there a quick way or is it more complex than a simple property or in-built function?
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: David Hall on March 31, 2008, 10:04:21 AM
what exactly are you trying to do?  find the limits of the VP as it relates to MS?
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: hardwired on March 31, 2008, 10:23:34 AM
Yeah basically. I want to create a rectangle (polyline) in modelspace to indicate where the viewport in paperspace in 'looking at'..
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: T.Willey on March 31, 2008, 11:54:34 AM
If you don't mind a lisp solution, here is one I wrote and Alan (CAB) fixed.

http://www.theswamp.org/index.php?topic=9461.0
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: surveyor_randy on April 03, 2008, 08:22:00 AM
This post got me curious.  Is it possible to set the center of a viewport with modelspace coordinates in VBA?
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: Bryco on April 03, 2008, 10:04:09 AM
Zoom and zoomcenter for that Randy.
The rectangle has been covered in past posts and  a solution for 2d given perhaps the lisp gives a better solution for isoviews
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: surveyor_randy on April 03, 2008, 01:07:13 PM
Zoom and zoomcenter for that Randy.
The rectangle has been covered in past posts and  a solution for 2d given perhaps the lisp gives a better solution for isoviews

Thanks for the help!
Title: Re: Modelspace coordinates from paperspace viewports?
Post by: mjfarrell on April 03, 2008, 02:44:50 PM
One could copy the original viewport and then use the chgspace command, this will insert the viewport rectangle into the model.