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.

Move Object to Another Layer

Started by wil01, December 07, 2015, 11:35:47 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

wil01

V23.1 in 2D mode
The object is a created group that acts normally on Layer 1.

I try to move it to layer 3 from its Info Box by selecting Layer 3 in the box at the top of the Info Box Window.

It shows that it is in layer 3, but it still shows up in Layer 1 when Layer 3 is made invisible.  Its Info Box insists that it is in Layer 3.  No other objects in invisible 3 show up in Layer.

This is the only object that acts this way.  I have moved other object to different layer from the Info Box without any problem.

Any clues?

*******************

Not really related, but is updating to V25 recommended for a casual 2D user?

Thanks!
Wil

Dr PR

Are nested groups enabled?

In "Options/Options/General" see if the "Don't use nested groups" option is unchecked.

Nested group objects are packaged in "containers." The program treats these containers as if they were actual drawing objects.

When nested groups are enabled you cannot move the actual drawing elements in the group to another layer with the Info Box. All that moves is the "group container." The actual drawing objects remain on their original layers. I know this is stupid, but that's the way it works. I know of no other program that has screwed up nested groups like this.

If you disable nested groups by checking the "Don't use nested groups" option the Info Box will actually move the drawing elements to the selected layer.

When this option is enabled and you open a file containing nested groups you will have to say "no I do" want nested groups to not be used. They will be converted to ordinary groups.

You can move all elements of a nested group to the current layer with the "A+" "Apply layer to selection" tool in the layers toolbox. This moves the drawing elements and the nested group container to the new layer - this is how the Info Box should work with nested groups. Unfortunately, "A+" only moves objects to the current layer.

****

I requested nested groups for years and years, having used them in other programs where the nested group behaved exactly like a simple drawing element - which is the whole point of groups in the first place. The current DesignCAD implementation of nested groups is extremely disappointing and essentially useless.

I keep nested groups disabled, but that isn't all you have to do. Even if they are disabled they may be created anyway when you create a new group using objects that are already grouped.

The only way to defeat nested groups completely is to select the objects you want to group and then use the "Tools/Groups/Recursive Group Explode" tool to completely eliminate any vestiges of groups in the selected objects. Then use "Shift P" to reselect all of the previously selected objects and use the "Tools/Groups/Group Define" function to create a new single level group.

Phil
DesignCAD user since 1987

samdavo

Wil,
Can you attach the dcd file maybe?
Are there two identical objects at that location (in different layers)?
cheers
sam

wil01

Phil,

Thanks!

Checking "Options/Options/General, Don't use nested groups" solved the problem.  The group was moved to the desired layer straight away.

This is a very strange quirk in DesignCad.

Wil

JJG

Quote from: Dr PR on December 07, 2015, 12:58:21 PM
Are nested groups enabled?

In "Options/Options/General" see if the "Don't use nested groups" option is unchecked.

Nested group objects are packaged in "containers." The program treats these containers as if they were actual drawing objects.

When nested groups are enabled you cannot move the actual drawing elements in the group to another layer with the Info Box. All that moves is the "group container." The actual drawing objects remain on their original layers. I know this is stupid, but that's the way it works. I know of no other program that has screwed up nested groups like this.

...
Phil

Sorry, but when nested groups concept was introduced in Designcad (v17), there was in addition the associated (and necessary) function  "Visibility by host layer" in the info box, and in Options/General. (as well as it is for symbols)
With this option enabled, you wouldn't have any problem to display or not the group when you hide some layer(s) or not.

Since this  "Visibility by host layer" for nested groups has been removed, it's now completly screwed up ...

the culprits are those who have asked to remove this option, and refuse to re-integrate it in the current versions.

Dr PR

JJG and have had different opinions about nested group operation for some time now. But he does have a good point about control of visibility of parts of groups and nested groups.

I do insist that the main reason for having groups is to make the collection of objects behave as a single object. A group should behave and interact with all commands just like a single drawing object - with no extra hidden side effects. Likewise, nested groups should behave exactly like single objects.

But there are two collateral problems that must be solved, display and movement.

Display. In a properly designed program groups and nested groups are a way to build complex assemblies that can be used as single objects while maintaining a logical internal structure. For example, lets say you are designing an automobile engine. It has many parts like the alternator or fuel pump. The alternator is itself built up of many smaller parts, and some of these are composed of still smaller parts. The engine is an assembly of subassemblies of subassemblies and individual parts.

We need to be able to access each of these subassemblies individually and still be able to work with the entire engine as a whole. So maybe we design a roller bearing made up of the rollers and the race, and then group them so they act as a single bearing assembly. We might put the bearing on its own layer so we can turn off all other layers to reduce background clutter. The bearing is used in the larger alternator assembly, along with the armature, case halves, electronics module, etc. Each on it's own separate layer and perhaps in its separate group. And then we need to be able to lump all of the alternator parts and groups into a nested group that acts like a single object.

But how should these objects be displayed? On the one hand we need to be able to turn on/off the display of the entire alternator. At other times we might just want to see only the armature, or perhaps one of the case halves along with the fasteners that hold the assembly together. Visibility by layers allows us to select the visibility of individual layers, and, therefore, the objects on those layers.

But we also need to be able to control visibility by groups, including objects on multiple layers. And this means showing only the objects on certain layers that are a part of the group and not showing other objects on the same layers (actually, with the proper use of layers this shouldn't be a problem - just don't put a collection of unrelated objects on a single layer).

In DesignCAD this group visibility thing was originally associated with the group "package," and it was treated as an object separate from the actual drawing objects in the group. So when you selected a nested group and tried to move it only the package moved - defeating the entire purpose of having groups! This was a bad mistake! It pretty much makes it impossible to use nested groups to create assemblies made up of subassemblies. But the visibility of the entire nested group could be controlled by placing the package on its own layer and switching the visibility of that layer on/off. It was a kludge.

What we really need is a separate group visibility control, independent of the layers the parts of the groups are on. With this scheme we could open a list of groups and nested groups and control the visibility of each. For this to be useful each group and nested group should have a unique user assigned name (with a program assigned default name).

We could also open the layers list and control the visibility by layers.

But this brings up the question of which visibility method has priority. What if I turn on the visibility of a group and then disable visibility of a layer containing parts of the group? Or what if I turn off visibility of a group and the layers are visible where some parts of the group reside?

Movement. The second problem associated with groups and nested groups is object movement, both within layers and between layers. This is the essential group related function, and display is of secondary importance (because you can control display with layers).

Within layers. Obviously, when you select an object, a group or a nested group and then change it's position within the drawing (relative to other drawing objects) all parts of the object/group/nested group must move together. All parts remain on their respective layers and move together as a single object to the new position. There can be no exceptions to this rule!

Between layers. How should groups and nested groups move when you change layers? This is the problem with the current implementation of nested groups. When you want to move objects within a nested group to a new layer(s) with the Info Box none of the drawing elements actually moves - only the invisible "package" moves. This is screwball! When the user tries to change layers the parts should move to the new layer(s).

But how should they change layers? We can use the "A+" "Apply Layer to Selection" function to move all parts of a nested group, including the invisible container, to the current active layer. But this is a severe limitation because we must first change the active layer to the desired destination layer for the parts of the group. PITA! And all parts of the nested group will be moved to one layer, disrupting the original layer structure of the nested group.

Another way to move parts of a group or nested group is to retain the relative layer positions of all the parts and move them all to new layers. So if a nested group contained elements on layers 2, 3, 4, 5 and 7 either layer 2 or 7 would be the reference layer - it would probably be best to use the lowest layer number - 2 in this example. So the relative layer order of the nested group would be n, n+1, n+2, n+3 and n+5.

If the nested group is moved to another layer - say layer 10 -  the parts would move to layers 10, 11, 12, 13 and 15. This retains the original layer order of the parts in the high level assembly while moving the parts from their original layers. Think of it as moving the entire engine assembly within the drawing layer structure without putting the parts of the alternator in the same layer as the engine block and fuel pump.

But we would still need the option to move all of the parts of a multi-layer assembly into a single layer. For example, I might construct the engine in a separate drawing, using dozens of layers to keep the parts separate. But if I copy/paste the engine into a new drawing of the entire automobile I will want all arts of the engine to behave as a single object and occupy a single layer in order to reduce the complexity of the layer structure in the automobile drawing. I currently do this by making the desired layer for the pasted objects the current layer, pasting the objects into the drawing, and then using "A+" to move all parts to the current layer.

I would like to be able to select a nested group and use the Info Box to either 1) move all parts of the nested group to a single layer (not necessarily the active layer) and 2) move all parts of the nested group to new layers, retaining the relative layer order of the parts.

****

Along with all of this layer/group control we could also used an hierarchical list of all parts in a group or nested group. This should look and work line the Navigation Pane in the Windows 7 Windows Explorer.

With this list we should be able to enable/disable display of parts of the group/nested group.

****

Further thoughts?

JJG, would this nested group scheme satisfy your needs?

Phil

DesignCAD user since 1987

DrollTroll

Quote from: Dr PR on December 08, 2015, 11:19:08 AM
I would like to be able to select a nested group and use the Info Box to either 1) move all parts of the nested group to a single layer (not necessarily the active layer) and 2) move all parts of the nested group to new layers, retaining the relative layer order of the parts.

Along with all of this layer/group control we could also used an hierarchical list of all parts in a group or nested group. This should look and work line the Navigation Pane in the Windows 7 Windows Explorer.

****


At least some of this is now possible in V25 with the Group Editor.

Select the Group.
Open the Info Box.
Click on the Edit Group button.
You can now see a hierarchical view of the Group's contents, including sub-groups, and can change the layers of individual items, entire sub-groups, or the entire nested group.
25 years with DesignCAD

Dr PR

DT,

Thanks. I knew this display list was available.

When you have nothing else to do you could think about adding the layers for each part to the list. You really need to be able to see the layer structure in order to know if you want to move something to a new layer.

After that a visibility control for each part in the list would be nice.

Phil
DesignCAD user since 1987

DrollTroll

QuoteWhen you have nothing else to do you could think about adding the layers for each part to the list. You really need to be able to see the layer structure in order to know if you want to move something to a new layer.

Not quite sure what you mean here -- you can click on an individual item to see its layer. Or to you mean making the item's current layer part of the item's display text?
25 years with DesignCAD

Dr PR

#9
DT,

I was thinking of adding a "layer" column to the list showing what layer the part is on. I guess for nested groups that should be the container layer and for individual objects the layer the entity is on.

This is a bit tricky since you can create multi-layer solids, so I guess something like "M" or "multiple" should appear in this case.

The idea is to be able to see all of the layers for the entity/group/nested group all at once so we can understand the overall layer structure. Also, being able to spot multi-layer entities would be very useful for those cases where the solid Boolean operation scatter facets to the wind.

****

By the way, I just tried to open the "Edit Group" dialog for a new group consisting of only two lines - the dialog never opened. Nothing happened.

V25.1 16 Oct 15

AHA! "Edit Group" doesn't work if "Options/Options/General" option "Don't use nested groups" is enabled. So we have to enable nested groups even if we just want to edit just a simple single-level group.

Phil
DesignCAD user since 1987

DrollTroll

Well, for non-nested groups, you can just apply the desired layer if it's set to "Multiple" since there's no group container object.

But yes, it should also work for non-nested groups, if possible. I'll see if we can add that to V26 (already looking at the possibility of a similar Solid editor).
25 years with DesignCAD

JJG

Quote from: Dr PR on December 08, 2015, 11:19:08 AM

JJG, would this nested group scheme satisfy your needs?

Phil
How nested groups have been worked in v17-19 with "Visibility by host layer", have me fully satisfied. All was logical. the host layer had the priority over all. also all operations could be done as if all the parts of the nested group have been in the host layer, but the display remained with all the advantages (i.e; if you are using color by layer, line style by layer etc ...)
It was fully logical.
Now no more.

JJG

Now, whether another way than the layers can be invented to manage the locking or the visibility of (nested or not) groups without that the entities contained in the groups lose their original layer (which is and stay the most important, and what i. e. the management allowed by "visibility by host layer" did very good), then yes, that this should be done, now that there is nothing coherent to achieve this goal when one's use (like me) nested groups very often.

Dr PR

JJG,

You brought up an important point. When layers have assigned attributes for line style and color they define how objects are displayed. If some scheme is developed to show all parts of a group independent of layer visibility, these layer properties should be applied where relevant.

Moving objects from one layer to another to another is a different problem. I do not think it would be a good idea for an object to carry layer properties with it when it is moved to another layer. It should be the user's responsibility to set up the properties for the new layers as it is currently done.

Phil
DesignCAD user since 1987

JJG

Yes Dr PR,

I'm fully agreed with you on the fact that it wouldn't be a good idea for an object to carry layer properties with it when it is moved to another layer ; I would even add, it will be fully stupid !
That's why the concept of "Visibility by host layer" was a very good tricks to obtain all the desired effects, i. e. that groups (nested or not) are only containers that don't affect the properties of the objects (solids, lines, circles, texts, dimensions, ... etc even sub-groups) they are containing.

With this concept of "Visibility by host layer", the status of the host layer (and only him) was driving all the content of the group, without affecting any of the properties of each entity within it.
It was great, super, and completely logical.

And besides, for those (like you) who did not want to use this concept (or did not want to hear anything about it), you just had to not check this checkbox found in the Options / View menu. (see please image attached, from v19).

But, instead of that, it was chosen to eliminate this very good thing, thinking it would solve a problem with the groups for those who had never expected or wanted to use this concept of "Visibility by host layer", and without correcting the problems they created or made themselves in the use of groups.
Since then, all other users (like me), who appreciated and knew how to use this trick with happiness, are now also penalized.
Thanks for them !!!

In fact, the group concept (= "container") that you are looking for, Dr. PR, is already existing, but only in 2D-mode, I concede : his name is "define Solid" , and some users gives  him also the name of "improper solid".
I have used it frequently myself, back when there was not the nested groups concept (i. e. until V15), and even now again, in 2D-mode, as "Group"-starting base (= as group-index Nr1), i.e. indestructible with the "explode group"- and especially "recursive group explode"-commands.

This way of building "groups" (with improper solids) meets all the expectations of Dr. PR, except ... it is not called "Group" and that in 3D-mode, it is very "tricky" to use it among and together with "real" solids.

I think that the decision makers of DesignCad, before the developers, have to consider and to address this issue : giving the possibility to enclose some entities into a "whole" (i.e. a "container as you say) not connected to the concept of layers, and giving it a new name, such as "assembly" or "set", or any other name that will be well explicit. That is, indeed, the true solution. But it will never solve the particular case of entities (enclosed in the "container") who are on locked or non-visible layers) : the "Visibility by host layer", through his priority given to the layer of the group, solves (in my mind) the problem, which is otherwise inextricable.

But the way that was chosen (i.e. going back in the possibilities of existing nested groups, by removing the "Visibility by host layer"-option, has just led to the impasse in which we are today, on this point of use and possibilities for nested groups.

Besides, why "Visibility by host layer" did maintained for symbols (another form of "group") and not for nested or non nested groups ?
Mystery, too.

Pity, please : may this option of "Visibility by host layer" be restored for groups (nested or not) ; it's just and only an option.
Those who don't want to use it will not use it ; the others will be fully satisfied !