AutoCAD .NET :: Cannot Get Frozen In Viewport Status For 1st Viewport Of Several
Jul 1, 2011
I did a test drawing with 4 viewports in paperspace.I frozen a layer in each viewport (as a viewport override, not global), and wrote code to gather info on layer overrides in viewports.The function takes in a database, and is generally used on drawings only open in memory:
the odd thing is it never finds the frozen viewports on the first viewport. It catches the others fine.I cannot see anything odd either, the counts of viewports and layers are all correct, and the drawing has no problems.Is there something that must be done to initialize the mechanism that reads viewport overrides?
I have a sub that gets a page number and a collection of layer ID's to freeze. The sub will freeze the selected layers in all of the viewports except for the new one.
After running the program, the layers in the specific viewport are still visible, but when you go into Model mode in the viewport and check the layer status, it shows the selected layers are set to Freeze in the viewport.
If I save the drawing, exit,and re-open it, the layers are now not visible. I believe I have the "Regen" in the correct spot.
The code is attached.
' Freezes the selected layers in all other existing viewport layouts Public Sub freezeOtherLayouts(ByVal pageNumber As Integer, ByVal layersToFreezeLayerIds As ObjectIdCollection) Dim doc As Document =
I have a viewport in paper space with most layers set to "VP Freeze". When I save the drawing or when a auotsave occurs, the frozen layers become visible again in the viewport even though they are still marked as frozen. The only way I can get the viewport to display correctly again is to close the drawing and re-open it. How I can stop this from happening?
Problem: When I create a new viewport, another viewport's paperspace blanks out or disappears. When I copy a viewport over, the new VP doesn't show anything and you can't maximize/"enter" its paperspace; it's like a simple rectangle, but the properties box says it is indeed a viewport.
Ex. Viewport 1 shows the top view of an object, Viewport 2 shows the right side view... as soon as I add Viewport 3, the top view in VP 1 blacks out. I attempt to ReDraw, Regenerate, etc, but it doesn't re-appear. I've run Plot Preview to see if maybe it's just a fluke with the graphics card on my screen, but alas, even in plot preview the viewport is blanked out.
It almost seems like there is a limited number of viewports I can use.
Solution: Run the MaxActVP command and set the value to a number greater than the number of VPs you actually need. This particular file had that value set at 2; hence, why a new, third VP blanked out the first one.
I have a drawing with a viewport that fits to the page. And I created another smaller viewport over top that just shows the legend. Now when I try to double click inside the smaller viewport it always goes into the larger one. I have tried bringing the smaller one to the front but that didn't work. I know that I can clip the larger viewport around the smaller one or bring the legend right into paperspace or slid the smaller one off to the side work in it and slide it back. This is more out of curiosity of how to get into the smaller viewport.
I am wanting to insert a second viewport over an existing viewport and have the information in the existing viewport behind the second viewport and not seen. I want the second viewport boundary to be the "trimming" edge of the existing viewport. How do I do this?
I zoom into a viewport so the border of the viewport cant be seen nor selected no more, then I double click selecting to zoom the viewport of cause. Now how do I deselect it without undoing?
When I scale a viewport, I normally type in the scale I want into the Viewports toolbar. So if I want the viewport to be 1 to 25, I type in "1:25". I have done this for years. Now all of a sudden, I have started a brand new drawing, setup the company border as A1. Then typed in "1:25" into the toolbar, and it zooms RIGHT in so you cannot see the drawing. But when I use the old fashioned command:
zoom - scale - 1/25xp
It works perfect. Why this is happening with the toolbar?
I'm pretty new to AutoCAD, I've been self-teaching myself for about a month so that I can do some floor plan drawings for a company I work for.I've been drawing in 1:1 scale in model space, but when I plot/print to check my work, I print on A4 paper.
My question is, on A4 paper my 1 drawing unit : 1 mm scale plots perfectly. But obviously if I were to compare that scale to real life, it would not be 1:1. How do I figure out the scaling on the viewport to compare to real life?
1. Any way to pan within a locked viewport? Everything I've tried has led me to believe that this is not possible.
2. Is it possible to limit a viewport's scale to one specific value? In my case I need all of my viewports, on multiple sheets, to show my model space in 1:100. That said I don't want to be able to zoom in this viewport, just a straight up "pan-only" space--hence my first question.
Edit#1: So to further explain my situation, this particular drawing set that I'm putting together is only used to focus and display what is in my modelspace --nothing more. It seems as though I'll need to continue unlocking, panning, zooming, scaling, and re-locking my work for now.
In the end the final goal was to send this drawing template to a client to allow them to adjust what areas of the drawing the wanted to display without them needing to play with the scale.
I am having to go in and edit a design pack/sheet set which was put together by a far more experienced AutoCAD user than I. That person is no longer available to me for consultation.
My next problem: On a sheet I have a viewport, and in the viewport is material which I need to modify, and that material is not anywhere in model space for this document. How do I find out where it is?
With my viewport set at "2D wireframe", all object lines show regardless of elevation which can make it difficult to read and hard to really get the idea of what is going on in the drawing. Therefore I changed my viewport to "hidden" in an attempt to depict what is higher in elevation over lower objects by having the higher objects cancel out lower objects when running over them. For some reason it works with conduit running over conduit but when the conduit runs over other objects (that are lower in elevation) created with the box command the lines do not get broken.. the lower box object actual cancels out the higher conduit object??
So I have a viewport, viewing exactly what i want it to in model space but it's not where i want it in paper space. When i move the viewport entity in paper space it's changing my view in model space. How do I lock what the viewport is seeing?
I've tried locking, that doesn't seem to do it. I've tried yelling at it and that's not working. I'd try beating it with a stick but I don't know if the computer could handle it.
Is there an option to make a viewport stay on top of another and not have the underlying one shine through? Or do I have to line up their boundaries to prevent this?
In paper space I've zoomed in (whilst outside the viewport) double clicked inside the viewport and now I can't zoom back out again to see the viewport or border! Typing 'ps' doesn't work. (mac)
I have just installed Autocad Architectural 2011 (64Bit) on my computer, since my laptop was struggeling with running autocad 2009.
I have opened a 3d model of my building (created in the 2009V) in Cad 2011, played around a little bit and am now at the point of having to create some viewports to plot elevations etc. But now i am stuck, i have created a viewport, selected it and can't figure out how to set the scale. I saw there was a 'button' (that is not working?) on the bottom, saying 'Vieport Scale', i can't click on it to change the scale, so i went to properties. When i select 1/100 Standard Scale, it automatically goes back to Custom Scale and sets it to 0.005. Basically nothing happens! The only way it changes the scale is when i double click on the viewport and zoom in/out on my building. But that can't be the only way to do it?!
I have got a deadline coming up, and really can't work on my laptop again as it keeps overheating and crashing on me! How to set the scale of my viewport and actually get it to do it?
i have a drawing that i turned off the border of the viewport and i need to move the viewport problem is i cant select the viewport.. ive got all the layers turned on and can select inside for model space and outside for PS but cant select port itself..i even tryed select all and nothing
Is it possible to pan within the viewport. I find that I am constantly trying to chase the right part of the drawing for the viewport using the viewport resize handles. Worst is if I scale in and loose the part of the drawing I wanted to show and have to use the handles again to make the viewport really large to find the spot that way.
I have worked out the scaling but the panning within the viewport would be really useful.
My query is to do with panning around a Viewport in paperspace.
I have one drawing of a venue with contents and have the same venue but with different contents directly below it.
When I copied the venue I locked the ortho and copied the venue.
Now my paperspace looks at the first venue.I have copied that paperspace but wanted to make sure that when I pan down to fit the venue into the viewport that I lock the ortho and hit the same view size and location on the paper as the view before.
Is there a keyboard short-cut to lock the ortho as I pan down to the model space I want to see?
I have my screen (modelspace) set on 3 viewports - left.I have obviously tweaked a sysvar that has had the following effect..If I start a command (e.g. circle) in a viewport that is set to world UCS, and then switch to a VP (before selecting cenre point) that has a UCS of X+90, the orientation of the circle switches to the new viewport.
I have tried this on various drawings, and the problem is reproduced each time.I have also tested it on 2011 (same computer and same drawing / template) and the circle is drawn as world/plan (which is what I intended)
I have tried UCSFOLLOW which doesn't work, and UCSVP which does work (a bit), but I want to have (and have had in the past) various viewports with differing UCS's and the ability to start a command in one viewport/ucs but finish the command in another without losing the original UCS.
I am sure this is a widely know thing but I personally have never run into this before. - And don't know how to change it. In paper space I can not see the viewport outline box. When I double click inside the vp the outline box shows up and I can move or rescale. What I want to do is move the vp - and I obviously can't do that unless I can grab the outline box. What is the setting that makes the vp boxes visible or invisable?
recently upgraded to a new stand alone LT 2012 on brand new machine.I only work in metric millimeters. When I open a new drawing and set up a viewport on a new layout tab the viewport scale list is as one would expect i.e. 1:1 1:2 1:4 1:5 1:10 1:25 1:50 etc etc
when I open an existing drawing I only have the option of imperial scales i.e. fractions. I have tried simply adding the most commonly used scales to the list but once the drawing is saved and closed, they have disappear when reopened.
I am currently using AutoCad LT 2013 for Mac, and somehow managed to lose the panel where you choose the scale ect. for viewport. This applies for all my files, and I have not been able to "find" this panel again and print anything in proper scale since. URL....
I'm trying to create a new layout and then adding text and a view port. The add text works but the add view port method, written in AutoCad's Developer Guide, doesn't!
Sub MyLayouts(ByVal LayerVal As String) '*********************' '* Create Layout *' '*********************' 'Declaration' acDocs = Application.DocumentManager acDoc = acDocs.MdiActiveDocument acCurDb = acDoc.Database Dim acLayoutMgr As LayoutManager = LayoutManager.Current 'Notification' acDoc.Editor.WriteMessage(vbLf & [Default].MyApplication & " -> Création d'une présentation. ") 'Transaction database' Using acTrans = [Code].......