News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Layer lock bug

Started by Dr PR, March 16, 2010, 10:14:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

V20.0 2/10/2010

This damned locked layers bug is really getting to be annoying! Every time I open a drawing every hidden layer is locked. I have to unlock each layer when it is made visible before I can edit it. Usually I open the Layers dialog and click "Unlock All" before I resume work on the drawing.

Locking layers was invented to make visible objects uneditable. Hidden layers can't be edited so they don't need to be locked. It makes no sense to lock hidden layers. The only reason to remember locked status in a hidden layer is to preserve the user's settings when the layer is made visible again!

It especially makes no sense for the program to change the user's settings! We can no longer establish a desired collection of locked, unlocked, visible and hidden layers, and save it with the file.

Grrrrr!
DesignCAD user since 1987

edgar

From my quick tests it seems that this only affects the Layer Toolbar not the Layer Dialog. I experience other anomalies with that toolbar as well.
-Ed

Dr PR

edgar,

It effects both, but I have problems in the Layers dialog. Since the beginning of (DesignCAD) time I have used the Layers dialog exclusively, clicking on the lightbulb icons to enable/disable display of layers. In all previous versions disabling an unlocked layer resulted in the disabled and unlocked status both being saved with the drawing.

In V20.0 if you disable an unlocked layer and save the drawing, when the drawing is opened again all disabled layers are locked. If you click the lightbulb icon to enable a formerly unlocked layer it will be locked.

This makes it impossible to establish a desired combination of permanently locked and unlocked layers and enabled and disabled layers, and save it with the drawing. Bug!

Someone noted that if you click the lock icon in the Layers dialog the layer will be enabled and unlocked. True, but to reestablish the locked/visible combination of layers in use when the drawing was previously saved you have to go through every layer, one at a time, enableling them, setting the desired locked or unlocked status, and then disabling the unlocked layers you do not want to view at that time. Some drawings have dozens or hundreds of layers. PITA!

For me the annoyance comes from the fact that for the last 20+ years I have rarely locked a layer permanently. The only time I lock a layer is when it is visible and I do not want the objects on the layer to be selected by a drag selection box (that is what the layer lock is for). So, when I open a drawing in earlier versions few, if any, layers are locked, and all I have to do is resume work on the drawing just as I left it. When I enable a previously unlocked layer in earlier versions with the lightbulb icon it will be unlocked.

In V20.0 it will be locked. My use of the Layers dialog has been learned from decades of DesignCAD work. Now, when I open a drawing and start working, enabling and disabling layer as I have done for 20+ years, I find objects that can no longer be selected or edited unless I stop the work I am trying to do, open the Layers dialog, and fiddle with the program to make it work right.

1. Why was this changed?

2. It makes no sense to lock a disabled layer just because it is disabled. Bug!

3. The program is discarding a user-defined configuration. Bug!

4. V20.0 works differently from all previous versions of DesignCAD for no good reason! Bug!

5. This was an unnecessary and useless change to the program!
DesignCAD user since 1987

Rob S

DR, I was trying to reproduce your issue, and I can't do it.  I tested all of the versions on my computer, being V15.3, V17.2, V19.1, and V20.0

Side note - see how the major version numbers increase almost proportionally to the decrease in the final minor version numbers  ;D - seems we keep getting less free maintenance releases.


I created a drawing with objects on four different layers.  I then turned on and off the lightbulb while the drawing was open with or without closing the layer dialog, and with the lock icon either open or locked prior to this.

- in all versions clicking the lightbulb off also locks the layer, but un-hiding it by clicking again on the lightbulb remembers the lock state of the layer prior to hiding it.

Now with two layers in the hidden state, one of which was locked first and then hidden, and one just hidden, I saved and re-opened the drawing.

- in all versions in the re-opened drawing clicking the lightbulb would un-hide the layer, but not unlock it.

I can't find any change in this behavior in V20.

User since forever

Dempsey

Dr PR,

Are we repeating the in depth discussion we had already on the beta forum?

See http://forum.designcad.com/index.php?topic=2762.0
Dempsey

Dr PR

Dempsey,

Most users can't see the beta forum. I want to know if other people (non beta testers) are seeing this problem.

Rob S,

I saved a file in V20.0 last night before shutting down the system. Immediately before saving it I clicked the "Unlock All" button in the Layers dialog. When I started up and opened the file in V20.0 this morning the first thing I did was open the Layers dialog and click on the lightbulb for several hidden files. When these layers became visible they were unlocked! I closed the file without saving and reopened it and got the same results.

Hmmm. Of course, when you are trying to catch a bug the program always works right!  I definitely have been seeing files becoming locked!

I have been saving files after clicking "Unlock All" and finding locked layers in the file after I open it again. However, normally I do not open the Layers dialog until after editing the file for a while, and then when I enable a hidden layer it is locked. So, maybe it is something I am doing that causes hidden layers to become locked. Or perhaps this is one of those problems that pops up only after an hour or two.

I will continue to watch this to see if I can figure out what is happening.
DesignCAD user since 1987

edgar

I now understand the problem (I was not doing the save, quit, re-launch) and can confirm the bug. I suspect this is a case of dueling config settings. Until I got my huge monitor (now in for warranty repair) I did not have the screen real estate for the Layer Toolbar so never used it until recently. The toolbar and the dialog have some conflicts and seem not to share dupicate code.

I believe the bug is in not saving/loading the proper lock state (there should be 4--LockedOn, UnlockedOn, LockedOff, UnlockedOff; UnlockedOff is a locked state but needs to be stored in the save config). This should be fairly easy to fix as far as the dialog and saved files is concerned.
-Ed

Dr PR

Thank you edgar! I am not imagining "ghosts in the machine!"

I also suspect it has something to do with configurations, but what?

I think I have V20.0 configured the same as I have configured all other versions, but because we do not have a configuration file that can be passed from version to versions it usually takes a while for me to rediscover all the many reconfiguration steps I need to do to make the program operate "correctly."

I have probably missed a few, or maybe there are new configurations settings that I am unaware of.
DesignCAD user since 1987

Rob S


So do any of you actually see a change in this operation in V20, or are we now agreed that it has always been this way??

I do agree that the lock state of a layer at the time when it is hidden is only retained while the file is open, and is not saved to disk with the file.

For me this is unchanged since V15.
User since forever

Dean

Hi Dr Pr, I use layer groups for the most part which works well in large drawings with many layers and all layer configurations are saved. When I don't use layer groups I have found that the layer states are still saved with the drawing. I have noticed if I turn off or on or lock or unlock a layer without changing the active layer and without doing any other edits in a file Dcad will not ask for a save file when I exit. All layer states will be in the state from when I last saved when I re-open. If I only change the active layer with out doing any other edits in a drawing Dcad will ask me for a save file when I exit. Hidden layers are locked by default. Un-less I am missing something why is this a problem for you? just curious.


Quote from: Dr PR on March 16, 2010, 10:14:05 PM
V20.0 2/10/2010

This damned locked layers bug is really getting to be annoying! Every time I open a drawing every hidden layer is locked. I have to unlock each layer when it is made visible before I can edit it. Usually I open the Layers dialog and click "Unlock All" before I resume work on the drawing.

Locking layers was invented to make visible objects uneditable. Hidden layers can't be edited so they don't need to be locked. It makes no sense to lock hidden layers. The only reason to remember locked status in a hidden layer is to preserve the user's settings when the layer is made visible again!

It especially makes no sense for the program to change the user's settings! We can no longer establish a desired collection of locked, unlocked, visible and hidden layers, and save it with the file.

Grrrrr!

DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dr PR

Rob S,

It has never been this way! I have been using this program for 23 years, and all this time I have used layers extensively. I typically create geometric constructions on layer X and then draw the desired objects on layer X+1. When objects are finished they are moved to layer Y and new objects are created on layer X+1. Actually, I may have several sets of construction/drawing layers in a drawing, and move back and forth between them a lot. The actual drawing may built up on dozens of layers, one or more for each major element. With so many construction layers and "storage" layers only a few are active at any time. When I disable layers I do not lock them! That would be silly since disabled layers are not available for editing and do not need to be locked. The only time I lock a layer is when I want a geometric construction layer to be visible, but not editable or selectable. I rarely leave these locked.

Let me emphasize this - in 23 years I have probably locked a layer no more than 10-20 times. I do not want the layers locked, and a do not care what others may want to do in their drawings!

In all previous versions when I open a file to resume work, NONE of the hidden layers are locked when I make them visible. In V20.0 I have been finding that all hidden layers are locked when I enable them to start using them. So, when I switch back and forth between the multiple working layers after opening a file I must first open the Layers dialog and unlock the layer. I have never had to do that in any previous version. It is a tremendous waste of time, and having to stop useful work to unlock layers is very annoying!

In case anyone does not understand, Locked/Unlocked and Visible/Invisible are two different things (or at least they used to be).

An inactive or invisible layer is not "locked," it just isn't available for editing. Obviously, these layers do not need to be locked!

A visible (enabled) layer that is not the current layer can be "locked" to make it unavailable for editing but still visible. This is the only purpose of "locking" a layer. If a visible non-current layer is unlocked it is available for editing (you can move things in the layer, delete them and select them).

DesignCAD does remember the locked/unlocked status of a layer when you enable and disable it (using the "Lightbulb" icon in the Layers dialog). So you can disable a locked layer so it is not visible and later enable it and it will still be locked when visible. Likewise, you can disable an unlocked layer and enable it again and it will still be unlocked. Hiding/disabling a layer does not change its locked status.

In previous versions the locked/unlocked status of layers was not changed when you closed the file and it was the same as you left it when the file was reopened (in any version of DesignCAD). I am finding that with V20.0 all hidden layers are locked when a file is reopened.

I have been working on a drawing since last December. I started it with V19.1, and worked on it with V20 beta versions 1, 2, 3, 4, 6, and 8, using the same layer procedures I have been using for decades, with nothing unusual happening. Then, when I started using V20.0 2/10/2010 suddenly every hidden layer was locked. Now when I open almost any drawing I have ever made in the last 23 years all hidden layers are locked!

The only exception occurred when I deliberately clicked the "Unlock All" button in the Layers dialog immediately before closing a test file. When I opened it the next day (after shutting down the computer over night) none of the hidden layers were locked.
DesignCAD user since 1987

Rob S


I don't know what to say.

The thing  is, as stated above, in all my tests so far, all versions from 15 thru 20 already act that way for me.

I've asked if anyone else could please test this to confirm?

Maybe that would help us find a setting which has been changed and affected this behavior?
User since forever

Adrian 2.0

For what it's worth, I don't see any change in the function of the layer switching.
As far as I recall, making a layer invisible has always caused the 'padlock' to show locked. When I want to enable a layer and I need it editable, I simply click on the padlock, which makes it visible and editable together. If I want to  make it visible & locked, I click the lightbulb.

Lar

Dcad remembers the dual layer status while you are in a session but once you close and reopen, if it's off then it's locked.

I normally hibernate so I wasn't even aware of the 'restart=(off=locked)' thing.

edgar

My "office" is closed for remodeling until after 1 April and I only have 19 & 20 at home. Both work as Rob reports, I still agree with Dr PR that it is a bug.
-Ed