AutoCAD 2013 :: Freeze Layers In Xref'd Viewports By Selecting Them In The Viewport
May 8, 2013
In previous versions of Autocad 2008 and earlier you could start a new drawing xref in a drawing then switch to layout and create a viewport that would show the xref. Then you could click inside that viewport and run the FL (freeze layer) command and selectively freeze layers by clicking on them.
In my current version of Autocad Civil 3D 2010, when I follow the same steps as above and run the FL (freeze layer) command inside the viewport, the entire layer contents within the viewport freeze as if everything is on that one layer.
I notice that if I pull up the layer manager box and go down the list of xref'd layers and select the freeze in viewport option for each of the layers I need to freeze it will do what I need to have done, But I'd like to be able to be able to selectively freeze these layers visually within the viewport like I've always been able to do, instead scrolling down a long list of layer names and freezing them that way.
I'm using Autocad 2013, and im trying to freeze layers in certain viewports, but the VP freeze/thaw button is greyed out for all my layers and wont allow me to freeze anything. I dont want to use the New viewport freeze/thaw button.
I am in need of a LISP to freeze layers in viewports on named pages. I found the following functions to return the frozen vport, but it only returns the list of already frozen and it only works if the viewport is active; besides just listing the frozen layers isn't enough. I need to be able to supply the page/tab and a list of layers to freeze.
Is it possible to provide the page/tab name and a list of layers as aguments to a subfunction that could either activate the viewport and freeze a list of layers, or simply freeze the layer list for the named page's/tab's corresponding vport.
Important: most of my pages/tabs contain at least two vports. The largest of the two vports is the only one I wish to change, but if the layer list is frozen on all vports (per page/tab) it will make no difference because the smaller vport only requires that layer 0 is visible.
We have our pipe networks living in a master file that is XREF'd to our sheet files. Now, the pipe and structure objects are all the layer C-PNET. The style for the pipes is comprised of the layers C-STRM-PIPE (for pipe walls) and C-STRM-PIPE-PATT (for the center line that is the width of the pipe). When I go into the XREF I cannot freeze OR change the color of the layers comprising the pipe style even though they are all set to ByLayer in the style dialog. The only way to freeze the network is to freeze the layer the pipe network is on C-PNET. However, this presents other problems with our file setup and we dont want to universally freeze C-PNET.
why we cant freeze the portions of the pipe network that are defined in the style as being on C-STRM-PIPE, and C-STRM-PIPE-PATT? If so, how do we remedy this?
I have the following code that works, most of the time. Actually, it works or completes itself all the time, but there is no "all encompassing" measures incorporated.
All of the reference entities, believe it or not, are on layer "0". There are also some consistent layers, that you can see in the code below. However, a user may create or even remove any layer in the reference drawing. Therefore in my current drawing, I may have layers that are not frozen in the xref.
Like i said, the following code works, but not all encompassing.
Im having some problems with a file im working on. I have a file with an x-ref, when im in the model space i can see all layers i want to see, but in the viewports i created in the file i noticed that 2 layers(layers that i really need to see) dont show up. Ive checked the freeze/thaw, on/off, plot/no plot settings, layerstate, i tried creating a new layer in the x-ref file(the parent file) and putting these things that dont show in the new layer but nothing changes. I'll attach two images for the layer settings.
So, whats missing in the viewports is the cyan text where it says "Klassisk sal"and some other text surrounding it and the cyan box with the text "Mko 12.002". The highlighted layers in the layer properties window are the associated with these items
Viewport.jpg
here is the layout, the layout is active and again the two highlighted layers are the ones associated with the objects missing.
The problem is when I select a solid, autocad freezes for about a minute. After that minute, I can execute a command. During that minute of inactivity, I can use anyother program or part of windows normally with no apparent degradation. If I click in an autocad window, toolbar,etc, all the open autocad windows cloud over and the cursor turns to a spinning cursor. Outside of an autocad window the cursor is normal. This is how it works in the noun/verb process, grip editing. However, if a command is issued first, then the selection of solids is instantaneous. The solid(s) are appropriately highlighted and everything proceeds normally in the verb noun approach.
I have played with a variety of suggested performance settings in windows and in autocad. I have updated the graphics drivers so I always have the latest version. I have a quadro fx 3700, 16gb ram, and 2.5 tb of disc space.
The code I'm using is supposed to go through all of the layouts and freeze the specified layer in the single viewport that is defined on that layout. It works for some viewports, but not for others. A "List" of the objects show the viewports are the same. I have a LiSP routine that gets me more info about selected objects. The first is a viewport that does not freeze the specified layer, the second does freeze the layer. Here is the code I'm using:
Public Sub FreezeNewLayerInVPs(ByVal pageNumber) Dim doc As Document = Application.DocumentManager.MdiActiveDocumentDim db As Database = doc.Database Dim layerToFreeze As String = "DETAIL_" & pageNumber Using tr As Transaction = db.TransactionManager. Start Transaction( )Dim layTable As LayerTable = DirectCast(tr.GetObject(db.LayerTableId, OpenMode.ForRead), [code]...
We have some heavy drawings with many layouts. Each layout contains multiple viewports. It takes up to 10-15 minutes to switch layout. When we insert a new xref we would like it to appear in all viewports except one. This applies to all layouts.
I'm working with alot of overlapped x-refs and every layer for each x-ref will come in to the drawing. When I'm using the viewports I need to freeze all the layers for some x-refs that don't need to show in that viewport. Since each x-ref has well over 70 layers I am wondering if there is a simple way to freeze all the x-ref layers in the viewport.
When you XREF a drawing from another file that file is brought in along with all of its layers. Personally I do not need these layers for my access is there anyway I can combine all these to eliminate the large quantity of layers in my file? Say by layer merging. And if I do will this affect the ability of the file to revise itself?
Explanation: What I am doing is taking a bunch of engineering drawings, XREF them into my file, then creating seperate viewports for each drawing referenced in. But the key is I need these files to adjust automatically when the engineers make changes (This is done through the XREF command from what I gathered from one of my previous posts).
have xrefs in drawing froze some of the xref layers, changed colors on some others looks great on screen, but all the original colors show on plot, along with the frozen layers...is this to do with the xref?
I made an autocad file. with many xref files. there are layers. and the layers are all the same, only the name for the layer its the name of the xref link . but how can i turn it off at once.
Turn on/off layers in the current viewport only, I’m wondering if there is a command that can be plugged on the “quick access toolbar” by which one can turn on/off layers in the current viewport only.
The available command to do so is “Freeze and thaw in current viewport” (attached) and it sounds it can’t be plugged in the “quick access toolbar”!
Is there a way to plug the command “Freeze and thaw in current viewport” in the “quick access toolbar” (attached)?
Getting used to using tiled viewports, and wondering how to keep the viewports from reshuffling/resizing on a temporary basis, so I don't have to keep manually resizing them whnever I, say, maximize one view to work on it. When done working in one maximized tiled workspace, I'd like to return to the previous orientation of the tiles. Right now, I have to manually resize/reorient the tiles. Any suggesitons on how I can return to a "preferred tile format"? For instance, I might want a plan view, two elevations, and a 3-D, with some tiles larger than others, to return to reglarly after maximizing one to work in temporarily.
- Dell XPS 8300 running Windows 7 SP1 64-bit with 12 GB of RAM
- AMD Radeon HD 6800 Series with updated drivers installed
- AutoCAD 2012 64-bit SP1
- ACAD Hardware Acceleration is ON
This hotfix is already installed.
This particular file (and a few others) has an issue whereby the computer pauses for a LONG time whenever an XREF is placed OR a copy/paste system command is executed (not the COPY AutoCAD command, but Ctrl+C/V). I have audited and purged the file; there are no audit errors. I also tried recovering the file and it made no difference.
I checked one of the problemmatic files on my machine (different machine but still AutoCAD 2012 and Win7) and the same file has the same issues.
New files do NOT have this problem. I have attached the file. Steps to recreate the problem:
1. draw a simple rectangle
2. try to copy/paste it with ctrl+c/v
3. this other machine and my machine both pause for 8-10 seconds
I'm confident that it's something in the file, but I don't know how to track it down.
I have a few problems with my autoCAD 2010 version on my new computer.When I make a few hatches, there is a possibility that my entire computer freezes and the only way out is a hard shut down of my computer.
The same problem also appeared when I tried to open a drawing direct in autoCAD or when I search the file to make an exref into the drawing.
I'm running into a problem today setting up a drawing. The drawing has three viewports at different scales all looking at different parts of a model I have xrefed. The problem is that when I set a viewport to 1" = 50' for example, it is really being set to 1" = 50" -- off by a factor of 12. I cannot figure out where this problem stems from, but it is driving me a little crazy at the moment. I can work with it, by setting the scale with this correction factor in mind, but I would rather be able to set my viewports correctly, in case someone uses this drawing later as a go by or to do revision work.
I attach an xref to a drawing, plan profile, and align the parts of the xref in each viewport the way I want them to appear.
The host drawing is a generic plan profile sheet border. The viewports are set to the same scale same annotative scale, and are undefined, not a plan or profile viewport. I save the drawing and get out of cad all together. I restart cad and open the drawing. The plan view viewport is visible and the xrefs are also. In the profile viewport nothing is visible or only one line is visible. Items in the view port are viewable, not frozen in the viewport, not turned of. The annotative scale is exactly the same for all viewports as is the xref drawing.I am xrefing a civil 3d 2011 aliment and profile drawing into these sheets. The only way to see the xref in the view ports is to detach and reattach the xref. To make things worse this does not happen to all drawings that are using the border that I used to create this drawing set.
I have a model space with a few XREF drawings. I have a layout with a viewport of these drawings. All seemed fine until I imported another drawing using XREF. I went to adjust this viewport and it is not showing the new drawing that has been imported into model space (I can see the three drawings that were there but the new one will not appear) to you have to like "reload" a viewport or something? (From my understanding viewports alwasys stay current with model space)
I am currently working on a .DWG in Civil3D which has 12 viewports. This particular .DWG causes my computer to lag quite a bit. I was wondering if there was a way of combining viewports in paper space (i.e. taking areas from multiple viewports and displaying them in one viewport), or if I am stuck with the individual viewports? I am just looking to speed up the process, it takes a long time to load the .DWG and work within it, the problem happens to others as well.
.DWG info: Large area with many smaller sites (retention ponds and such) All sites must remain in the paper space layout (I've tried deleting viewports, and that does speed up the process, but again, I need to keep all sites intact).
Computer info: Windows 7 64-bit 8GB Ram Intel Core i5-3450 CPU @ 3.10GHz NVIDIA Quadro FX 1800
My viewport is currently struggling handling an imported 700k Poly ZBrush sculpt. My tech current specs are -
- 3DS Max 2011 - Updated, with no extra patches. - i7 2.80GHz - ATI Radeon HD 5700 Series (Default Settings, DirectX 9 + Redraw Scene on Window Expose on) - 2x2 Gig RAM - Windows 7 64 Bit
the viewport will constantly freeze/pause for 3 seconds before orbiting or panning just fine, and when using tools such as relax or soft-selection on a small area of the basic naked human mesh (About 400 verts) the viewport will drop to be about 2 fps.
I don't know whether this is the most appropriate rig in the world, but from my previous experience with slower rigs on 3ds 7-9, 700k wouldn't produce unbearably stuttering viewport renders.
Are there any obvious ways I could improve 3DS's performace?
Any way to select an Invalid Xref that is attached on multiple layouts and delete them at once instead of going through every single layout and deleting it manually.
I'm on my paper space layout tab, I double click inside the viewport so I'm in model space, I open the layer properties with the full drop down menu and click on the far right column with the snowflake icon which is suppose to freeze the layer for that particular view port. It does not freeze the layer. I'm starting to wonder if it is something with the program.