News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Problem with Named Views in Model Space

Started by Adam13, November 02, 2009, 10:03:03 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Adam13

My apologies in advance for a long post. I wanted to be as detailed as possible.

I have been fighting an ongoing problem with named views in model space. I have come to the conclusion that there is a bug in the "Create View" process and have created a simple test drawing to demonstrate.

A little background information: I do electrical schematics for our custom machinery using TC. I draw the schematic in model space, and then use view ports in paper space to display the schematic within a title block. I create a simple rectangle in the model space that has the EXACT same dimensions as the area in the title block where I insert the view port. I then use "Create View" from the View menu to create a view in model space, snapping the view to the lower left and upper right corners of this rectangle. Each page of the schematic is then drawn within one of these rectangles, and a separate view is created for each.

When creating each view, I use the SEKE "V" to snap to each vertex of the rectangle, i.e. I select "Create View", position the mouse pointer near the lower left corner of the rectangle and press "V" to snap to the corner vertex. I then position the pointer near the upper right corner and press "V" again to snap to that corner. As I drag the mouse to the upper right corner, the dotted line showing the bounds of the view line up directly on the edges of the box I am using for a guide. However, when I move to paper space and create a view port of the same dimensions as the rectangle used to create the view, the contents of the view are slightly offset in the view port.

What I believe is happening: Even though I snap the view to the corners of a rectangle in model space, the actual location of the corners of the view are taken as the point where the mouse pointer was located when the "V" SEKE was pressed. This is despite the fact that the view boundaries are shown correctly.

To test this theory, I have created a simple drawing with an 8x6 rectangle in model space, and an 8x6 rectangle in paper space. There are 3 more smaller colored rectangles inside of the 8x6 rectangle in model space to help show orientation once the view port is created. I then created two different views in model space.

The first named view, UsingSEKE, was created using "V" SEKE's to snap the view to the lower left and upper right corner of the 8x6 rectangle. I made sure to have the mouse pointer located outside of the 8x6 rectangle and a little ways away from the corner. However, the "V" SEKE did correctly snap to the rectangle corner.

The second named view, UsingZoom, was created by tightly zooming in to the rectangle corners and simply positioning the mouse pointer as close as possible to the corner before clicking.

If you select the view port in paper space and set the view to UsingZoom, you will see the contents line up correctly. However, if you select UsingSEKE, the contents are offset. Both of the views should have had almost identical dimensions, i.e. 8x6.

Any feedback will be greatly appreciated, even if it's the "you dolt, look what you missed" sort!

[attachment deleted by admin]

John R

Try "Zoom Extents" before creating your VP. From what I see in Modelspace, the two named views are not in the same place, thus they're off in Paperspace..

[attachment deleted by admin]
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Adam13

John,
Sorry, I think you have missed my point. I know they are in different places. However, they SHOULD be in the same place based on how I created them. When creating a named view using "V" to snap to the vertices of the 8x6 rectangle in model space, the snap does not work. The actual corner of the named view is placed wherever (just a guess) the mouse was when the V key for the vertex SEKE is pressed, not at the vertex it was supposed to snap to.

Using this drawing, try creating your own named view, but do it by snapping the view to the corners of the rectangle. Then apply this view to the view port in paper space and see if things line up. The further your mouse pointer is away from the corner when you snap to the vertex, the further off things will be in the view port.

Another way to look at it: Draw a rectangle in model space with the lower left corner at world coordinates 0,0, and the left upper right corner at 6,6. If you created a named view by snapping to the lower left vertex and the upper right vertex, in theory you should have a named view stored in the file with the exact location of 0,0;6,6. I don't believe this is happening. I believe the location is slightly off, by the distance away from the corner the mouse pointer is when you use the "V" SEKE to snap. To me, this is a bug.

Henry Hubich

Looks to me as if you're correct, Adam.

Henry H

John R

OK, I'm seeing the problem now. The only explanation I can think of is that the vertices are outside the drawing area, but probably a BUG. The Developers can answer this way better than I can.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Adam13

Henry and John,
Thank you so much for the replies! In the short term, I can zoom in tight and manually click on the corners of the rectangles to create the views. I'll submit a support ticket as soon as I get a chance.

Adam13

Well, I submitted a support ticket (19408-1503110728) and the response I received was
"I checked the difference between sizes of rectangle specifying the view created in Model space and the rectangle spcifying the boundares of inserted viewport in Paper space that displays created view. I found this difference quite negligible - 0.003 inches for 7 x 7 inches rectangle only at the left its side (less than 0.04%). Top side difference is too small, I did zooming in the drawing at this side and didn't get a gap between both lines (viewport box and the rectangle specifying created view). So please let me know what is the problem. I'm not quite clear of it from your post at the TC Forum."

I don't believe the responder understood the nature of the problem as he is discussing the relative sizes of the rectangles in model space vs paper space. The problem was the location of the named view in model space. The status of the ticket was set to resolved, which it most certainly is not.

Any ideas how to explain this better or to persue it differently?

Henry Hubich

After fiddling with this for a while, I think I've stumbled on a way to get the result you want: 1) Create the View by dragging a rectangle, not bothering too much about its precise size. 2) Create a Viewport in paper space, specify the View to be included and set the VP Scale at Fixed, 1:1.  3) Still in paperspace, turn on No Snap and select the VP with the Edit tool. If the entire object (e.g., your 8×6 rectangle) isn't visible in the VP, use the Edit tool to drag whichever of the VP's corners is/are necessary to expose the whole object. 4) Finally, turn on Vertex Snap and use the Edit tool to snap each corner of the VP to the corresponding corner of the rectangular object. I know it sounds weird, but the procedure worked for me three times in three tests.

Henry H

Johnny_Law

I looked at this and was confused.  I thing the OP doesn't understand the concept of a view or I mis-understood it myself.  A Named view just sets the location of the camera in model space.  It should not be used for scaling a drawing.  If what the OP wanted was a scaled drawing with matching dimensions in paperspace then setting the viewport scale to 1:1 and sizing the viewport to see the whole object is the way to go.  I have never tried to scale a view just corresponding viewports.

Johnny
TurboCAD v19 Platinum - 64bit
Windows 7 Ultimate - 64bit
Intel i7 - x980 (3.33 GHz 6 duo-core)
12GB RAM, ATI 5570 w/1GB VRAM, 2TB 7200rpm HDD

Fast but not the fastest...

Henry Hubich

Quote from: Johnny_Law on November 08, 2009, 12:36:12 PM
I looked at this and was confused.  I thing the OP doesn't understand the concept of a view or I mis-understood it myself.  A Named view just sets the location of the camera in model space.  It should not be used for scaling a drawing.  If what the OP wanted was a scaled drawing with matching dimensions in paperspace then setting the viewport scale to 1:1 and sizing the viewport to see the whole object is the way to go.  I have never tried to scale a view just corresponding viewports.

Johnny

Confusion is understandable ;-)

"Named View" and "Create View" are two different tools. "Create View" requires the user to designate a rectangular region on the screen, whereas "Named View" includes the entire screen.

Henry H

Johnny_Law

Thanks Henry,

Confusion should be my middle name.  It amazes me how we/I can create complicated models/drawings while only using a small percentage of the tools given.  I guess that could be said about our brains as well.

I will check the option out and see what advantages it might have for me.

Thank you.
TurboCAD v19 Platinum - 64bit
Windows 7 Ultimate - 64bit
Intel i7 - x980 (3.33 GHz 6 duo-core)
12GB RAM, ATI 5570 w/1GB VRAM, 2TB 7200rpm HDD

Fast but not the fastest...

Adam13

#11
OK, there seems to be some confusion (my fault) about what I'm trying to do, so here's a real world example drawing. The view ports inserted in the title blocks are the same dimensions as the guide rectangles in model space. For each schematic page in model space, I created a view using these steps (with "No Snap" on):

1. Click on menu item View\Create View.
2. Position mouse pointer near lower left corner of guide rectangle (pink rectangles on the "Views" layer).
3. Press "V" on the keyboard for vertex SEKE to snap to vertex at lower left corner.
4. Drag mouse pointer to position near upper right corner of same guide rectangle.
5. Press "V" SEKE again to snap to vertex at upper right corner.

I then create a view port in the title block area in paper space and select the corresponding sheet view from model space. Since the view port and the view created in model space have the exact same dimensions, my assumption was that everything should align exactly. I should not see part of the next sheet, and items near the edge of the page should not be clipped. As you can see in paper space, things do not align properly.

When I draw schematics, I typically leave "No Snap" turned on and use SEKE's to manually pick snap points. One interesting thing I have observed in this case: If I turn "No Snap" off and enable the Vertex snap, the behavior is different and things align better when I create views. This does not seem right. An automatic snap and using the "V" SEKE should produce the same results, but they do not.


Since I have at least a couple of ways to deal with this problem now, I can't spend any more time on this. I believe there is a bug in the way views are created when using manual SEKE's to define the coordinates of the view. The problem is the location of the view created, not with scale or anything else.

Thanks again to all for responses.

*edited to remove attachment*