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 features save

Started by Dr PR, November 13, 2012, 10:58:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I would like to see an option (General Options) to save the complete locked/visible status of layers. Currently, the full state of the layers is not saved with the drawing. If a layer is not visible but unlocked, when the file is saved and reopened all non-visible layers are locked. When you make the layer visible it does not become unlocked.

Every time I open a drawing I have to open the layers dialog and click "Unlock All" to clear the locked status of invisible layers. Otherwise, every time I make a layer visible I also have to unlock it. I often have to click "Unlock All" several times during a drawing session to clear layers that the program (not me) has locked (this is a bug!!

Of course, clicking "Unlock All" destroys any locked status that the user may have deliberately assigned, another PITA.

Better still, fix the bug in the program that automatically locks a layer when the user just makes it not visible.

Objects on invisible layers should not be selectable (can't snap to them) even if the layer is unlocked. But changing visibility should not effect the locked status. Layers should exist in any of these four states:

Visible unlocked (editable)
Visible locked (not editable)
Not visible unlocked (not editable)
Not visible locked (not editable)

These states should be saved with the drawing so it opens in the same state it was saved.

Phil
DesignCAD user since 1987

JJG

Phil,

Question : how do you do "Not visible unlocked" ???
New in v22, because, my side, in v21, I can not do that ...

prl

Quote from: Dr PR on November 13, 2012, 10:58:36 AM
Not visible unlocked (not editable)

Phil, doesn't this contradict itself?  Aren't "lock/unlock and "non-editable/editable" the same internal program toggle?  Unlocking means make editable. To be editable, layer needs to be visible, no?


Dr PR

I think I am mistaken. In V22.0 the locked/unlocked status of layers seems to be remembered when the file is closed and opened again. At least it is working in the file I am currently editing. In some recent versions this definitely was not working and it was really annoying! All invisible layers were being locked when the file was closed.

Note: the lock symbol in the Layers Dialog will show "locked" for all invisible layers even if they are not locked - this is a bug. The program has worked this way for a very long time. This appears to be a source of confusion for some. Just because the symbol shows locked on a layer that is not visible doesn't mean the layer is actually locked.

You can see this for yourself by unlocking a visible layer, then making it invisible, and then visible again. It will still be unlocked, so obviously it wasn't locked while it was invisible even thouogh the lock symbol showed it to be locked. Do the same with a locked layer, and it retains the locked state when it becomes visible again, so obviously, making a layer visible does not unlock it. The program remembers the locked/unlocked state of invisible layers, but it doesn't display it correctly (bug). You have to make a layer visible to learn whether it is really locked or not. This makes no sense.

There is also confusion about the meaning of locked and not visible. These are two entirely different concepts.

The purpose of locking a layer is to protect the contents from being changed. The main usefulness of this method is to be able to create a set of reference lines or dimensions and then lock them so they cannot be changed accidentally. However, it should not prevent snapping to points in the layer - that would eliminate the usefulness of having locked visible layers. The user should be able to lock layers and have them stay locked, whether they are visible or not. The lock symbol should operate independently from visibility.

Layer invisibility is a way to decrease clutter on the screen. When a layer is invisible the contents aren't accessable - you can't snap to them. That doesn't mean the layer is locked. When the layer is made visible again it should retain the locked/unlocked status the user gave it. The lighbulb symbol shows whether a layer is or is not visible. It should operate independently from the locked/unlocked state of the layer.

The program should NEVER change the locked/unlocked status the user gives a layer. That defeats the purpose of locking layers entirely. This includes saving the file, shutting down, restarting and opening the file again. It should have exactly the same locked and visibility states that the user created.

****

I normally unlock everything except perhaps a reference layer with critical dimensions that I never want changed. Occasionally I may lock a normally editable layer to make it easier to select objects on other layers in cluttered parts of a drawing, but this is rare. In most drawings I never lock any layers. However, I sometimes find layers that are locked - that I did not lock. I haven't figured out what is locking the layers.

All you have to do is click "Unlock All" to unlock all layers, including those that are not visible. The locked symbol will not change on unlocked invisible layers (bug), but they will be unlocked. Then, when you enable visibility the layers will be unlocked. This has worked as long as I remember. Of course, this unlocks any locked layers that you deliberately created.

****

It looks like the program (V22.0) is working correctly most of the time with respect to layer locked and visibility status. I will continue to watch for locked layers and see of I can figure out what is causing them.

Phil
DesignCAD user since 1987

magic

Hi Phil,

I think you are partly right.

When you click the lightbulb you toggle between visible/unlocked and invisible/locked, and when you click the lock you toggle between visible/locked and visible/unlocked, but only if the layer is visible/unlocked to start with.

You cannot go from invisible/locked to visible/locked, you have to go visible/unlocked and then visible/locked.

Logically, in the invisible/locked state you should be able to make a layer visible/locked by clicking the lightbulb and visible/unlocked by clicking the lock.

I'm not sure that DesignCAD didn't use to work this way.

However, I find it would be illogical and very unpractical to have an invisible/unlocked state, and that is definitely not a bug, Phil.
It's a kind of magic!




Lar

Quote from: Dr PR on November 13, 2012, 03:03:33 PM
There is also confusion about the meaning of locked and not visible. These are two entirely different concepts.
Phil has my vote on this one.

I know dcad has always worked with an invisible layer being displayed as locked and dcad remembering whether the user manually locked or not. I just got use to remembering which invisible layer were fully locked or not.

I also know that DT will say this is too big a change so I recommend we change the color of the invisible-but-unlocked icon, or put a circle around it or something.

Quote from: magic on November 13, 2012, 03:33:10 PM
Logically, in the invisible/locked state you should be able to make a layer visible/locked by clicking the lightbulb and visible/unlocked by clicking the lock.

I'm not sure that DesignCAD didn't use to work this way.
This is exactly how dcad always worked for me. If a layer is invisible and I want it visible and unlocked, whether I know the 'fully locked' status or not, I just click the padlock icon. This turns it on and unlocks it the same time.

With the new layer dialog in v22 we can select a contiguous or non-contiguous set of layers and make them all visible/invisible and/or locked/unlocked with single clicks of the 'visible' and 'editable' options below the layer-properties section.

Lar

prl

Quote from: Lar on November 13, 2012, 03:56:32 PM
I just got use to remembering which invisible layer were fully locked or not.

Lar, what do you mean with "fully locked" versus locked?

Dr PR

magic,

On my system with V22.0 it works exactly as I described. If a layer is invisible and locked, if you click on the light bulb it becomes visible and locked. Likewise, if it is invisible and unlocked, when you click the lightbulb it becomes visible and unlocked. This is the way it should work.

For what it is worth, I have never clicked on the lock to make a layer visible - that is just nonsense to me. I have always used the light bulb to control visibility, and the layer retains the actual locked/unlocked state.

The Reference Manual says to control visibility with the lightbulb, and locked state ("editability status") with the lock icon. It has never occurred to me that the lock icon could have any effect upon layer visibility. Again, to me this doesn't make sense, so I never tried it. Why would anyone try it? It is irrational.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on November 13, 2012, 04:53:06 PM
if it is invisible and unlocked,

Version 17 only had 3 states:

State 1:  Invisible and not editable
State 2:  Visible and not editable
State 3:  Visible and editable

When was invisible and editable (unlocked) introduced?  Is this a recent creation, new to version 22? How are you using that combination?

Dr PR

prl,

V15.3, V17.2, V19.1, V20.0 and V21.1 all have the four states. I don't have any earlier versions installed right now, but I think this harks back all the way to ProDesign. For me the program has always worked this way, warts and all.

Remember, the program does not display the unlocked state when a layer is not visible, but it does remember it so the layer is unlocked when you make it visible. This is the way it should work. It just displays the misleading locked indicator for unlocked layers when they are not displayed.

****

On another note ...


AAARRRRRGGGGGGGHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
:( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :(

I just opened the file I have been working on and all of the non visible layers opened locked! Before I saved the file I made sure that all layers were unlocked. This time I shut off the machine for a few hours, and when the file opened it had locked layers! V22.0 is still broken!

So - keep this in mind - if you close a file and reopen it immediately the program somehow remembers the state of variables in the closed file. That is scary! Uninitiated variables!? This could easily explain many of the varying and unrepeatable results the beta testers have seen in the past! I guess we need to turn off the machine and restart any time we are testing startup options for the program.

Phil
DesignCAD user since 1987

Lar

Quote from: prl on November 13, 2012, 04:08:57 PM
Lar, what do you mean with "fully locked" versus locked?
Well, Phil's argument has merit, in my opinion. Dcad remembers if an invisible layer should be locked or unlocked when the layer is made visible. So, "State 1" in your last post should not be "invisible and uneditable" but "invisible THUS uneditable"... and can be expanded as follows:
"Invisible and Thus Uneditable but Editable when it Becomes Visible"
and
"Invisible and Thus Uneditable, and Remain Un-Editable when it Becomes Visible".

This last state is what I mean by "fully locked" - the layer is locked whether it is visible or invisible. It's all in line with Phil's argument.

Quote from: Dr PR on November 13, 2012, 04:53:06 PM
For what it is worth, I have never clicked on the lock to make a layer visible - that is just nonsense to me.
Phil, since the dcad rule is "if layers are invisible they should be locked" then it follows that "if you unlock an invisible layer it should become visible". It's just a quick way of making sure a layer becomes unlocked as well as visible in one click.

Lar

Dr PR

Lar,

Actually, if you read the Reference Manual (V18 Reference Manual page 38) it says nothing about locked layers. It calls the lock icon "Editable." So if you click on the grayed out lock icon the layer becomed editable, both visible and unlocked.

I never noticed this before. I wonder if this is how the ProDesign manuals were written? Obviously just about everyone on this forum thinks in terms of locked and unlocked layers (almost no one has used the terms editable and uneditable).

In this respect the program is scizophrenic. The lock icon has two functions, one to lock or unlock a layer (when it is visible), and the other to unlock and make a layer visible. The icon is not a reliable indicator of whether a  nonvisible layer is locked or unlocked.

So some people think in terms of editable or uneditable - and invisible layers are uneditable.

Others think in the way the program actually operates, with separate visible/invisible and locked/unlocked states.

Personally, I am used to the lock indicator being flaky. It has been that way forever. If it is supposed to be an indicator of the actual layer state it is buggy. If it is supposed to be an indicator of "editability" it is redundant - the light bulb tells us that. In either case it is poor program design.

****

There is one very good reason to change the way it operates to show the actual locked/unlocked state and allow us to unlock invisible layers. Sometimes objects have parts on visible layers and parts on hidden layers. You cannot do anything with an object that is partly on a locked hidden layer, and we have no way to tell which hidden layers are locked or unlocked.

"Unlock All" will unlock all hidden layers, but it has the nasty side effect of unlocking layers you want to stay locked. If you know the hidden layer that is locked you would be able to unlock it without enabling the layer. Remember, if there are hundreds of thousands of objects on the hidden layer it may take many minutes for them to redraw if you enable visibility of the layer (and if you make the mistake of changing visibility while the view is shaded, it may take hours to redraw all four windows). So right now "Unlock All" is the only practical alternative, and that pretty much eliminates the usefulness of locking specific layers. That's why I try to keep all layers unlocked.

****

So what might you want to do with objects with parts on hidden and visible layers?

1. Change them (all parts) to the same layer. This is essential after the solid Boolean operations scatter parts of the new solid onto other layers unpredictably. If the other layers are invisible and locked you can have quite a search trying to find the errant pieces. I have had to do this countless times.

2. Change them (all parts) to a new layer.

3. Copy to the clipboard to paste into another drawing.

4. Duplicate them with the same layer states.

5. Explode them and edit the visible parts.

6. Delete them.

I'm sure I can think of other things I could do if I had separate control of locked and visibility states, but these are enough.

Phil
DesignCAD user since 1987

Bob P

DOS Versions didn't have a lock/unlock layer option.  Only visible/hidden.

My layer utilities (here) don't have a lock/unlock option either, but the macros could be modified to do that.  I created those macros before DC had native layer groups.  They are easier to use than DC's,  :P so I still use them.

prl

#13
Quote from: Dr PR on November 13, 2012, 09:19:42 PM
V15.3, V17.2, V19.1, V20.0 and V21.1 all have the four states.

Not in my world.  Invisible and editable is NOT a valid combination in 15.3 and 17.2  That would mean all your entities are active (selectable, movable, snapping) but do not show on the screen (invisible).

Phil, look at the Layer Statement in the BasicCAD reference.  Only three states (0, 2, 6).


QuoteThe LAYER statement can be used to set a layer to be visible/invisible or editable/uneditable. It can also be used to set the current layer. The following values can be used with the LAYER statement:

0 – Invisible and not editable
2 – Visible but not editable
6 – Visible and editable

14 – Set as current layer (the current layer is always visible and editable)

You could probably trick DesignCAD into doing what you are describing by using a program to cycle using Layer(i) = 6 while suppressing the screen regeneration with sys(36)=2.   That would work until you did something that will cause an automatic screen regen. 


prl

#14
Quote from: Dr PR on November 13, 2012, 10:09:46 PM
"Unlock All" will unlock all hidden layers, but it has the nasty side effect of unlocking layers you want to stay locked.

OK, I was playing around with the "Unlock ALL" button in the Layer dialog and Phil's discussion of multi-layer groups or parts with portions on hidden layers.  I see the new "state" he is describing.  It seems to be a partial unlocking for selecting a group or solid (with portions on turned off layers) but not for snapping or separate selecting of invisible entities.  Kind of half-way to invisible and editable.

Interesting twist. This isn't documented as a possible layer state combination.

I wonder if this new-to-me state is actually a new layer state combination or a special flag for the "selection routine" (aka, select everything including hidden items if attached to the currently visible selected item).

Phil, sorry I didn't initially understand what you were describing.  I have always avoided the layer dialog.  I control all my layer states through basiccad, hence my blindness to the things you have observed with the layer dialog.