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 1 Guest are viewing this topic.

Dr PR

JJG,

Your "solution" does not solve the problem.

The fundamental concept of the group - as initially implemented in DesignCAD and just about every other CAD and drawing program - is to collect objects together so they act like a single object. Originally this idea came about so all objects in the group move together, and would be copied or deleted together. Visibility was not a property of the group - that was controlled by visibility of layers.

Then people got the idea that it would be nice to make groups of groups, or nested groups. Again, the point was to have the collection of groups behave as a single object for moving and copying. But, more importantly, the groups within a group would maintain their unique group identities, so if a higher level group was exploded the lower level groups within it would still be intact. Again, visibility has nothing to do with it.

So the fundamental concept of a group is just a collection of objects. Period.

In combination with layers properly implemented nested groups allow the user to make assemblies of assemblies and control the visibility of each subassembly by enabling/disabling the visibility of the layer(s) the subassembly is located on.

So I might have a nested group of groups of objects for an entire automobile engine. The entire engine would move, copy, delete, etc. exactly like a single drawing entity. I could turn off visibility of the alternator, exhaust manifold, cylinder head, etc. by disabling the visibility of the appropriate layers. But the entire engine assembly (visible and not visible) would still be treated as a single object.

This is the way nested groups work in most programs that I have seen. It is a very logical hierarchical design.

****

There is one theoretical problem that must be answered with respect to nested groups. How should groups be moved between layers? If the original intent of groups is to be respected, movement of groups between layers should work exactly like moving a single entity between layers.

DesignCAD allows you to group objects on multiple layers. This originally applied to simple single-layer groups. But if you selected the group and used the Info Box to move the group to a new layer, the original layer structure was lost.

In a way this was OK - the user commanded the program to put the group on a new layer, and all objects in a group are supposed to behave like a single object, so they all move to the same layer as parts of that single collection of objects.

Besides, all objects in a group were supposed to be on a single layer, just as all parts of simple entities were on a single layer. But DesignCAD gives us an unusual amount of flexibility in drawing (or you might say it is very poor at enforcing the rules), so the single layer group idea was not implemented.

This leads to the question about whether or not the layer structure of a group should be maintained when the group is moved between layers. I discussed this in my earlier post. There are two possibilities:

1. All objects are moved to a single new layer. This is the way DesignCAD handles this problem, and the layer structure of the group is lost in the move. This is bad because some user created information is lost (entropy increases). Or it is good if the user actually wants to eliminate that information (group layer structure) and put everything on a single layer.

2. The relative layer structure of the group is retained when the group or nested group is moved between layers. This way the layer structure information is not lost. I discussed how this would work in the earlier post.

This is why we need the option to keep or lose group layer structure when a group (or nested group) is moved between layers.

But maintaining group layer structure creates another problem. What is a multi-layer group is moved to layers X, X+1, X+2, etc. and there are already objects on some of the layers? If the layer structure is being used rigorously, only objects of some theoretical type will be located on a single layer. So just dropping new unrelated objects into those layers would violate the layer structure of the drawing.

So we need two options:

1. Forget theoretical drawing layer structures and allow the pieces to fall wherever they may.

2. Generate new empty layers for all relative layers in the group and insert them into the drawing relative to the selected new reference layer. So if a group on layers 2, 4 and 5 is moved to layer 10 new layers 10, 12 and 13 are created, and old layers 10, 12 and 13 are repositioned to layers 11, 14 and 15. This maintains theoretical layer integrity by not dumping apples and oranges into any single layer, but it does scramble the existing layer structure somewhat.

The new Group Editor in the Info Box will allow us to reorder the layer sequence if we want to clean up the resulting layer jumble.

****

The important thing to remember is that groups have nothing to do with visibility - that is the primary function of layers. If you use these two different features as they were designed to be used you don't need nonsense like "visibility by host layer."

However, it would be nice to have the option to control visibility of all of a group or nested group without having to turn on/off each individual layer containing objects in the group(s). But this must be implemented without screwing up the fundamental functions of groups - as the extremely poorly implemented "visibility by layers" mess did!

DesignCAD did have a way to accomplish this -  "Layer Groups." This allowed you to place individual layers into a group of layers. However, I can find no way to make this work - all I get is blank windows with no options to select layers to be placed into a Layer Group.

If properly implemented, visibility of all layers in a Layer Group would be controlled by the visibility of the Layer Group. This would accomplish what you desire - control of the visibility of an entire assembly with a single switch. It would also maintain integrity of groups and nested groups and still be compatible with the fundamental function of controlling visibility with layers.

An additional useful function would be a way to assign all layers of objects in a group or a nested group to a new Layer Group. This would make it much easier to create layer groups specific for particular assemblies - assuming that the user has the intelligence to not place unrelated objects on a single layer.

Phil
DesignCAD user since 1987