AutoCAD 2010 :: Frozen Layer In Viewport Becoming Visible After Save
Mar 8, 2012
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?
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 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?
When working with an xref background, we are experiencing really bad lag, and delays when working with objects that are drawn on top of an xref. I have restarted the affected computers, restarted the server that all files are housed on, upgraded the network switch...with no results. Tasks that should take fractions of a second, are sometimes lagging anywhere from 3-15 seconds depending on what layers of the xref are un-frozen and visible.
issue I'm having in my plot files. The way our office sets up our drawings is that we have a set of base files (which is where we do all our plans and details, etc), and then those drawings get xrefed into a different files located in a "plot" folder that that has our titleblock and viewports of the xrefed base files.
The problem is that the plot files have started to NOT save any of my layer states that are associated with the base files. For example, I have a base floor plan that has demolition, construction, RCP layer states that are toggled with LMAN. But if I open the plot file for the RCP and set up the viewports so only the RCP layers are visible...the next time I open the drawing the RCP layer state is abandoned...now ALL the layers are on and I need to redo the viewport layer states...
Layers are shown in the drop down menu from the ribbon but when I open the layer manager no layers are visible. I can click in the empty space and the layer will highlight. See attached.
I have a master drawing with multiple xrefed building sketches. Looking at the model space on the "master" I can see all the room identities. However, if I go to the sheets that I have created and look at the view ports. The room identities are not there. The layer is called A-Room-Iden and it is on and not frozen...
When I insert a drawing from another source as a block into one my drawing - and then explode the block and change the exploded block layers to my layers. Then I purge out the old layers. Normally this works fine, but I have lately had trouble getting rid of some unwanted layers as everytime I have tried, I get the message that they are x-ref dependent and cannot be deleted or purged. I have tried to isolate them by freezing and turning off everything else, but there are no features, entities, "specks" whatever, to erase. I have looked at the xref command, and my drawing shows no rogue xrefs. I am not sure what to do to get rid of these layers.
Why a layer state assigned to a viewport can only restrict the layers showing? I want my viewport to show the proper layers all the time, even when those layers are not visible in model space.
C3D 2012 SP2.1 WIndows 7 SP1 64 bit 24GB RAM Dual quad core xeon 3.2ghz cpu's Triple Monitors
I have an xref in my drawing. I am trying to use a VP override to make a layer plot with a lighter lineweight. I have changed the layer to number 9 (set to plot light) in the viewport and the layer changes color. When plotting the layer does not plot with the correct lineweight. The object color on the layer is set to bylayer. Visretain is set to "1" What is wrong? Why isn't the layer plotting correctly?
I am trying to create a single layout with title blockandviewport to save as a template for future. Right clicking on the layout tab does not produce the menu.
I create a new layout by selecting page set up manager in the file menu, create a new layout, but the tab does not show up at the bottom.
When hovering over this button in the layer manager the following is displayed.
"Creates a new layer and freezes it in all existing layout viewports. This button is accessible from the model tab or layout tabs".
Key words here being EXISTING and LAYOUT viewports. So I've got an existing xref attached to an existing layout and per the displayed tip this means, to me, any new layer created within the xref that has this option enabled will be frozen in all existing layouts.
Since a layout is a viewport, I assume this means the layout itself, not a viewport object used for viewing modelspace content from a layout.
Even if this means a viewport object used for viewing modelspace content, that doesn't work either, so what exactly is the point of this feature?
Dim editor As Editor = Application.DocumentManager.MdiActiveDocument.Editor Dim db As Database = HostApplicationServices.WorkingDatabase Dim tr As Transaction = db.TransactionManager.StartTransaction()
[Code].....
the only prob is : I want selec all block but not the block on layer frozen, off or not visible...
I can check all layer stat on each block.. (i do that already for check each block (name) but i want a solution more easy.)
I received a drawing this morning, and it's paperspace looks great. However when I tried to view the drawings in modelspace it was empty. All the layers are on, when I click into the viewport (in paperspace) I can draw a line on the same layer as the block and that will show up in modelspace, yet no block.
Is this a feature of CAD, never experienced this before.
P.s. The blocks are available to insert in modelspace , however I'm just curious as to why I can not see the blocks that quite clearly exist in modelspace already.
DWG has viewports on layout tabs, but the viewports are not visible. The viewport can be open, edited as established, but if you pan or zoom, the paperspace layout moves and not model space. In model space, viewport frame does not highlight.
All layers on, unfrozen, and plottable.
Have done extensive internet search to find soution, found others with same problem, have found no one with a solution.
Not extremely CAD literate, basically self taught, but until this problem, I've been knowledgeable and resourceful solving problems.
One of the computers that have AutoCad installed will not load all the way. It will start to show the welcome screen and the it will freeze. Looking on the internet that you go into task manager and kill the process called WSCommCntr, but it is not appearing in the task manager.
Originally the pc was on XP SP2 and with .Net 3.5. I updated both to the latest version. I have reinstalled AutoCad and I am still getting the issue. All hardware checks passed.
Also the issue sounds just like the one here URL.... , but I uninstalled the .Net Framework and reinstalled version 3.5 SP1. That did not work so I uninstalled that and put on 3.5. This still is not working.
I have a Layer named "Arch - Niveau 1".I would like to enter in the command prompt "a1"..It would read if the layer is frozen or thawed and if it is frozen, it will thaw it?
And if the layer is thawed, it would freeze it..What could be added is: To check up if the layer exists and if not, create it.Would do the same for 2 other layer named "Arch - Niveau 2" command "a2" and "Arch - Niveau 3" command "a3". Is it clear?Now the lisp I've found and modified is this:
(defun c:a1 (/ lay ldef flag) (setq layn "Arch - Niveau 1") (command "_.LAYER") (if (not (tblsearch "LAYER" layn)) (command "_Make" layn) (progn (setq ldef (tblsearch "LAYER" layn) flag (cdr (assoc 70 ldef))) (and (= (logand flag 1) 1) (command "_Thaw" layn)) )) (command "")) This lisp looks if it exists, if not, create it and only thaw the layer.
I'm not enough familiar with the "not", the "progn" the "flag", "and" and "logand" (!!!!)
I have a drawing that does not save the xref layer setting. I can change colors and thaw different layers but after saving and closing the drawing it reverts back to the original when opened again. I am sure this is a setting but can not find which setting.
I work in a multi-layer map, which I want to make a copy of. At the moment my background map (x-ref in layer 0) is editable/possible to unlock, but I don´t want it to be in my copy. Basically, I just want it to use it as a background picture in my new map.
We are using autocad 2010 and I have written a routine that will insert several blocks on to several layers. I thought it worked flawlessly, until I used it. Our drawings use layer states. When one state is in use, all the other layers are frozen. We want to insert a block, at a specific point chosen by the user, and the lisp routine will insert a couple of other blocks at that same point, but on a layer that is frozen. Three blocks installed in all, at the same point, on two layers. The routine works if all layers are thawed, but not if the layers are frozen.
(defun c:lP1 () ; this starts the routine (setq temperr *error*) ; saves *error* (setq *error* rerr) ; sets the new error variable (command "_.Undo" "_mark") ; start of "undo" command [code]....
I have a dialog box that has 2 list boxes. One box has the available layers in it, while the other will contain the selected layers. I want to use those selected layers as a list of layers that will be visible in a particular view port. I have searched all over to find information on what kind of list I would need and how could I use the list with a view port, but all I've found is info for one layer becoming visible.
I'm also looking into "FreezeLayersInViewport" but info sure seems limited.
I'm creating a new project drawing and have x-ref'd my base drawing onto the sheet to be plotted. I can see the base drawing thru the viewport while in layout, but once I try and preview my plot the drawing inside the viewport is not visible. that is, I can see the preview of my sheet border & title block, but nothing within the viewport shows on the preview screen.
When a drawing is printed using PLOT the drawing is printed fine. If I batch plot (or publish) it prints all the frozen layers of the xref and also prints the layers as assigned by the XREF drawing and not the new colours I have specified for this drawing.
When I draw a Nurbs Curve and check Enable in Viewport it is not visible in the viewport. I can change thickness settings, etcetera and see the bounding boxe changing in size but see no visible curve in any of the viewports. Is this a bug in Max 2012? Running Windows 7, 64 bit, Quadro 4000 with latest drivers.