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.

Lar

Maybe you can have the choice to do certain things externally, like rendering and Save As 2d. Then you can proceed working. My animation program can render in the viewport for quick visualizations, or it can render externally for final renderings (you can even render whatever the viewport is displaying as a final render). While rendering externally you can continue working on the same model or in another file. You can set a save path before you render, or, if you set no path it will not save but remain open and you would have to save manually, or just close it or render again to not save. If you press esc (or send it another image to render) a pop up says it is currently rendering and do you want to stop it. The rendering continues until you press no, so if you change you mind you didn't lose any rendering time. If you click yes it stops right away. These guys are programmers after my own heart.

Lar

magic

Hi all,

I had a look at this at 2:02 in the morning. I have checked it in v. 19 an 20, and I find no differences.

However, I found that if you change a layer from Visible to Invisible and Close the drawing, then it will still be visible, when you open it. You have to save the drawing in order to keep it invisible, when you open it again. But you have to remember to save it. Maybe DT needs to put in a Save changes to ... box, when you close a drawing, in which only layer settings have been altered.

Also, the way the Show all, Hide all, Lock all, Unlock all buttons in the Layer options work, are not consistent with the way the lightbulbs work. Hide all and Lock all work as per definition, but Show all should only make all layers visible, and Unlock all should work on invisible layers as well.
It's a kind of magic!




Dr PR

magic,

On my machine that is exhibiting the locked hidden layers the "Unlock All" button does unlock all hidden layers. However, the shaded out "Lock" icon is still locked, even though the layer will be unlocked when it is enabled (made visible).

I also noticed another odd layers issue. During beta testing I created a simple one layer file with several solids in it, all on layer 1. I did nothing on any other layers. I just opened it and layer 20 had an assigned color red and layer 21 had an assigned color green. I have NEVER used assigned layer colors or line styles - ever. They have always been a special annoyance when I receive files from other CAD programs because these "features" prevent me from editing objects on these layers "normally." The colors often are light blues and yellows that are nearly invisible on a white background, so I have to go through and kill the assigned layer features to be able to use the drawings.

Somehow DesignCAD assigned colors to layers 20 and 21. There were no objects on these layers and all layers were visible and unlocked.

****

OK, now I am losing it! I just went back and tested V15.3, V17.2, V19.1 and V20.0 on both of my machines (Vista 64 SP1 and XP Pro SP3). Every file I have, on both machines has all hidden layers locked! Considering how rarely I use locked layers, and how annoying they are to me, it is impossible that I locked every layer in every file! Also, since I have never experienced this problem until recently, I would guess that recently some file common to all versions has been changed.

If there is anyone visiting this forum who has only V17 or earlier installed on a machine that has had no later DesignCAD installations, please check to see if all hidden layers in all files are locked when you make them visible immediately after opening a drawing. Conversely, please report if hidden layers are not locked when you enable them immediately after opening the drawing.
DesignCAD user since 1987

jdi000

Quote from: Dr PR on March 20, 2010, 11:04:34 PM

If there is anyone visiting this forum who has only V17 or earlier installed on a machine that has had no later DesignCAD installations, please check to see if all hidden layers in all files are locked when you make them visible immediately after opening a drawing. Conversely, please report if hidden layers are not locked when you enable them immediately after opening the drawing.


Hi Dr PR

Using v15.3 only version installed on Vista laptop.

I see the following.

1. Open drawing with hidden layers, turned layers on and they remained locked tried turning on with toolbar and layer dialog in options. Same Result...

2. As Edgar said early on, in a current drawing when you turn layers off it also locks but when you show the layer it unlocks immediately only when using the options --> layers dialog.  If you use the layers toolbar hide a layer and unhide it remains locked (bug)...

So my question is why should a layer lock ever when its just being turned off from displaying?  It seems as if layer off always equals layer off and layer locked.  So I guess you can never move objects to a layer that is turned off because it is locked?


Regards

Jason


Rob S

#19
I just tried it on an old laptop that only has V14 on it, and never had any newer versions, and it already works the same as V20.

No matter what the lock state is on a layer when it is hidden, it is remembered while the drawing is open, and lost when it is saved and reopened - in which case it defaults to locked for all hidden layers.

Come to think of it, it is quite amazing how consistent Designcad's interface has remained over the years as new features were added.

As to losing it - I have often experienced that once I notice and become aware of an issue - I would swear it was never this way before and upon checking it turns out it was always like that.

This occurs most often when arguing with my wife, who has a memory like an elephant when it comes to thing I would prefer to be forgotten!!!

We are very happy to hear that you are also human after all.  ;D
User since forever

Dr PR

Rob S,

Take a deep breath.

I first noticed this problem with a file I have been working on for months. After flailing with this for a while in V20.0 I deliberately opened the Layers dialog, closed/disabled all but a few layers (which were unlocked), clicked "Unlock All", closed the dialog, saved the file (CTRL S) and immediately shut down DesignCAD. Then I turned off the machine. The next morning I restarted DesignCAD and opened the file. I opened the Layers dialog and enabled locked layers one at a time by clicking the "Lightbulb" icons. All layers were enabled unlocked!

I have repeated this three days in a row with V20.0. Then I opened the same file in V19.1, V17.2 and V15.3, and when I enable hidden layers they always open as unlocked! I just tried this with another drawing, and hidden layers open unlocked after it is opened. I am not imagining it!

For some reason this is the way it has always worked for me. Believe me, I hide and enable layers and switch between them very frequently, assuming layers will be unlocked when they are "unhidden." If they had been coming up unlocked this bug would have pissed me off a long time ago and you would have heard about it then! After all, I have been asking for years that drawings come up in exactly the state the user left them when they were last closed. This bug definitely violates this principle!

So, try unlocking all layers and save the file. Then open it and see what you get. You do not have to shut down DesignCAD and turn off the machine.
DesignCAD user since 1987

Rob S

OK, I have inhaled, and exhaled.  No issues there.  Then, I tested this specific point.

I find (and I think this is what you are describing)  that using "unlock all" just before saving a file causes the default status of hidden layers to be "unlocked" as opposed to being "Locked" when the file is re-opened.  No need to shut down DCAD or the Computer for this to occur.

However, it still does not remember the specific lock state of each layer as it was when the layer was hidden, and it works exactly the same in V14 (the one which is uncorrupted by any more recent installations) V17 and V20.

So, again, I find that nothing has changed at all.

Maybe this is where a triggered macro would be useful - that would run upon file-open to unlock all your layers if you want it that way.

User since forever

Dr PR

Rob,

Agreed.

1. During an editing session the program does remember the unlocked status of hidden layers.

2. The "Unlock All" clears all hidden and locked layers, and if you don't do this whatever unlocked status you had on hidden layers is lost when the file is closed and reopened.

However, after using the "Unlock All" before saving and closing the file all layer status (enabled/disabled and locked/unlocked) is saved with the file and when the file is subsequently reopened this status is just as you left it.

To verify this:

1. Open the Layers dialog (L)

2. Click "Unlock All" and click "Apply" and "Save as Default."

3. Enable some layers in the file.

4. Lock some of the enabled layers and leave the rest unlocked.

5. Disable some of the locked and unlocked layers.

6. Close the file.

7. Open the file.

8. Enable the hidden layers one at a time by clicking the "Lightbulb" icons in the Layers dialog.

The layer status is just as it was when the file was closed, preserving the four possible combinations of enabled and locked:

enabled and unlocked
enabled and locked
disabled and unlocked
disabled and locked

This is as it should be (and I am certain it is how it has always worked) so why isn't this the default operation of the program?

I suspect the "Unlock All" and "Save as Default" is what is fixing the problem. So the question is what is causing the problem?

The Reference Manual says that "Save as Defauilt" saves the changes for the next editing session. I have not been in the habit of using "Save as Default" but now I have to use it every time I save a file.

****

When you tested the V14 on your laptop did you open an old file that had not been edited in later versions? Or was it a file you have edited recently?

I hunted back for files that were last edited in 2001 and found that when opened on my current systems all hidden layers were locked. As I said, it is not now, and wasn't nine years ago, mu habit of locking layers, so if they had been locked back then I would have noticed.
DesignCAD user since 1987

Rob S

The old version was using old files, from said same laptop.

Shall we agree that we've beaten this one to death??   ;)
User since forever

paulerens

#24
In version 20
In a group of fifteen layers, I made two layers invisible (hidden), so also locked.
Saving the drawing (not save as default) and left DC20.
I opened DC20 with the same design. And the same Layers remained hidden.
Then I clicked unlock all (not save as default) and closed DC20. again.
reopened and the hidden layers are kept hidden and unlocked.(Test for unlocked, moving the group)
If layers are unlocked but hidden you can not see because the icons of the locks, do not change after (unlock all ).
This suggests that the layers are still locked.I have already written this in a topic of beta20. ???

It's a bug because it is misleading.

Paul.

Dr PR

Well I don't see how we can do any more for now. I do think it is a bug - the program should save the last user defined layer states. We already have this listed in our feature requests. This one goes to the top of my bug fix list.

I will continue to watch this and see if I can figure out a way to fix it.
DesignCAD user since 1987

Dr PR

It looks like this is not just a problem with recently opened files. Several times now I have had layers become locked during an editing session.

I will be working in layer X, then switch to layer Y and disable layer X. Then when I re-enable layer X (while layer Y is still the active layer) it will be locked. Since I may do this dozens of times during an editing session, it is very apparent when the layer suddenly becomes locked.

This hasn't happened often, just once every few days. I am still trying to determine the cause.
DesignCAD user since 1987