Cannot scale and snap a rectangle in a specific layer to my viewport.

Cannot scale and snap a rectangle in a specific layer to my viewport.

Anonymous
Not applicable
1,419 Views
8 Replies
Message 1 of 9

Cannot scale and snap a rectangle in a specific layer to my viewport.

Anonymous
Not applicable

Hi I've got a bounding box for a map and I want to scale and snap that rectangle (bounding box) to the exact size of my viewport. My viewport is fit to the extent of my page. 

 

Using scale to fit doesn't work because there are objects outside of that bounding box : (

 

Any help is appreciated. 

Accepted solutions (1)
1,420 Views
8 Replies
Replies (8)
Message 2 of 9

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> I want to scale and snap that rectangle (bounding box) to the exact size of my viewport

Viewport in (splitted) modelspace or viewport in layout?

 

What about using zoom Window and show the 2 window points of your rectangle?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 9

Anonymous
Not applicable
Trying to do this in layout. New to AutoCAD so not sure what you mean by the window points : P
0 Likes
Message 4 of 9

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

Hi I've got a bounding box for a map and I want to scale and snap that rectangle (bounding box) to the exact size of my viewport. My viewport is fit to the extent of my page. 

 

Using scale to fit doesn't work because there are objects outside of that bounding box : (

.... 


If I understand correctly....

 

Determine in Model Space the height  of that bounding box.  Then in Paper Space, double-click inside the Viewport to "get into" Model Space in it.  ZOOM, Lower-left-corner option, Osnap to that corner of the bounding box, and give it the height you determined before.  Or ZOOM, Center option, M2P Osnap between opposite corners of the bounding box to find the center of it, and again, give it that height.

 

If the proportions of that bounding box are not the same as those of the Viewport, then you'll have to decide which of the L or C options in ZOOM gives you the better result, or change the proportions of one or the other so they match.

Kent Cooper, AIA
0 Likes
Message 5 of 9

injineri
Advocate
Advocate
Accepted solution

get in viewport start Z > enter> shift+right click>E and chose rectangle corner, then shift+right click and choose another corner.

0 Likes
Message 6 of 9

Anonymous
Not applicable

 

I tested this with just a basic rectangle in a new file and your method works perfectly. but when i try it in the xref that i have it won't let me select the corner of the rectangle. 

 

instead my cursor just snaps inaccurately around the corner of my rectangle : (

 

 

is there something wrong with my snap settings maybe? idk why it only happens when i'm in the viewport and using this xref.

0 Likes
Message 7 of 9

injineri
Advocate
Advocate

I am using that method with xrefs too and it works. maybe changing xref attach method will make any difference.

Message 8 of 9

Anonymous
Not applicable

It worked! No idea what i did differently though but its working now : )

 

Thanks!

0 Likes
Message 9 of 9

injineri
Advocate
Advocate

very good, then you can choose that answer as solution, good luck 🙂

0 Likes