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.

Unlock-All macro

Started by Bob P, January 13, 2013, 05:30:45 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

#15
Phil is right about being able to manipulate entities on invisible and even locked layers with macros... but I agree with Prl - who posted ahead of me -  that these are rules written in binary and not stone, so they have loopholes, even though I'm not saying that Phil said they are written in stone and if he did say they are written in stone then so be it.

[the above statement should keep me safely on the fence in this epic battle between The Two Awesome P's of DesignCAD]

Eg, there were times when I wanted to move an entity to a different location, then move it to a layer that was off. However, I inadvertently moved it to the off layer first, using a macro, then remembered I was supposed to move its location. The handle for the now invisible entity would still be visible (if the macro has the code to regenerate the screen but lacks the code to deselect the entity) so I would just click on the handle to pick it up and move it. The ghost image of the entity would show as you move the entity. Sometimes you can even change the color with the info box, since those top buttons remain active although the rest of the box is empty. I don't recommend doing this though, since it may destabilize dcad.

In fact, with my v22 (currently without the new patch, since I had to reinstall dcad recently), this same condition happens if I use the layer toolbar to turn off or make uneditable the layer a selected entity is on.

Lar

prl

Quote from: Lar on January 17, 2013, 06:37:04 AM
[the above statement should keep me safely on the fence in this epic battle between The Two Awsome P's of DesignCAD]

Nah, no battle.  Just seeing who will fall asleep first.  :)

Lar if you do find one of these "what is going on situations" layer state combos, if possible please post a sample file.  Phil has always been right, I'm just trying boil things down for programming purposes.

Lar

Prl,

I think all Phil is fighting for is a visual clue as to the individual statuses of a layer being visible vs it being editable. So, if the light bulb is off the padlock can still be open. Then he would know immediately if he has to unlock a layer as well as make it visible. For me it is not such a big issue because if I want an invisible layer on and unocked I simply click the padlock icon. Also, I can normally remember if an invisible layer is also locked... during a working session. Years later I may not remember an invisible layer's locked state.

Quote from: prl on January 17, 2013, 06:41:56 AM
Lar if you do find one of these "what is going on situations" layer state combos
In terms of lower bits and upper bits I guess ignorance is bliss because all I know is the *if odd/this and if even/that* codes and they work pretty well for what ever I need.

In terms of the 'Unlock All' trick I have macros to save the current layer statuses before unlocking so I can return to those states when I'm ready. If fact clicking the unlock all button involves the layer dialog so I would just run my 'turn on all layers with the option of saving the layer statuses". Of course, not everyone is comfortable with writing or even running macros so I feel that these layer functions should be built into dcad.

Lar

prl

Quote from: Lar on January 17, 2013, 08:04:57 AM
I think all Phil is fighting for is . . . if the light bulb is off the padlock can still be open

Yes, nicely said and understood. I'm all for it.

Dr PR

Actually,

I am not really "fighting" for anything, unless it is to not change the way it works until the wayward grid facetrs problem is fixed.

I think it is odd or misleading that the lock icon doesn't show unlocked nonvisible layers, but it has been that way since day one and I certainly can live with it.

DesignCAD does a very good job of managing the variables so the program works in a predictable way.

Phil
DesignCAD user since 1987