News:

Please note new Forum URL: forum.designcad.com

Main Menu

Nested group fix

Started by Dr PR, June 26, 2012, 11:45:27 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

JJG,

I still do not understand a part of what you are saying. You refer to "moving nested groups" to a new layer, but you say all entities stay on their original layers? How can they not move if they move?

Are you just moving the entity 34 when you say you move nested groups? Since entity 34 is invisible, and cannot be selected, how are you moving it?

What's the point of moving just the entity 34? Why bother?

****

On the other hand I can also interpret what you say to mean that all entities in a nested group move to new layers, but they retain their same relative layer positions.

If this is true it would be very good. As you point out, moving a collection of items on multiple layers by assigning a new layer in the Info Box puts them all on the same layer, destroying the original relative layer positions. Of course this is good if that is what you want to do. But I have often wished for a way to select multilayer groups and move them to new layers, retaining the same relative layer positions.

For example, suppose you have a group with objects on layers 1, 2 and 3. Then you want to move the group to a new layer, say layer 10, with the objects ending up on layers 10,11 and 12.

****

What difference in behavior do you see with nested groups enabled and nested groups disabled?

Phil
DesignCAD user since 1987

prl

Quote from: JJG on July 08, 2012, 12:40:07 PM
... DesignCAD uses a "virtual line" (Nr 1) to connect the entities that must belong to the first group, another "virtual line" (Nr 2) to connect the entities that must belong to the second group etc. ...

Entity 34 is a no-draw segmented line that physically touches/tags entities?  For real or assumed?

What is your purpose and how are you moving the invisible line?  I guess the overall question for me is how are you using this nested group feature?  Is it primarily a trick for added visibility control via layers or do you actually use groups for grouping.  If possible maybe a simple example of how you work will let me understand.  






prl

Quote from: JJG on July 08, 2012, 11:41:41 AM
Please, try it before saying it is not the good solution.

And for me, the fact that entities remain ever in their respective original layer in nested groups (if you use the infobox to move the nested group to another layer) is a big advantage compared to classical groups or improper solids, with which you lose all entities's original layer informations when you move the group or the improper solid to another layer (via infobox or any other way to do it) : with nested groups, actually in the versions I have on my machine, if you explose (recursive or not) the nested group, you can retrieve all entities exactly in the original layer they were created.
Fantastic, right?

Not to worry.  Nothing will be undone, just trying to "get it".  I've read your paragraph above a few times. Isn't this the way blocks work.  They retain the original layers within the block though the block lives on a single layer. When exploded, the block reveals the entities original layers.

JJG

Quote from: prl on July 08, 2012, 02:13:32 PM
Quote from: JJG on July 08, 2012, 12:40:07 PM
... DesignCAD uses a "virtual line" (Nr 1) to connect the entities that must belong to the first group, another "virtual line" (Nr 2) to connect the entities that must belong to the second group etc. ...

Entity 34 is a no-draw segmented line that physically touches/tags entities?  For real or assumed?

What is your purpose and how are you moving the invisible line?  I guess the overall question for me is how are you using this nested group feature?  Is it primarily a trick for added visibility control via layers or do you actually use groups for grouping.  If possible maybe a simple example of how you work will let me understand.  

prl,

thanks for your interest.

"virtual line"---->assumed, from what is described in the sys() function of basicad (see the extract below) :

JJG

#34
now, ok, as our last french president said (shrugging his shoulders) :
"vous voulez savoir pourquoi les groupes imbriqués ont été faits comme ils sont actuellement ? et ben, j'vais vous l'dire !"  (prl will translate ...)
Well, since prl didn't do the translation, I give it :"you want to know why the nested groups were made ​​as they are now? well, I'll tell you !"

If you take a "regular" group (i.e. non nested group), containing several entities placed on several layers, and look at it via the infobox : the infobox indicates you "Multiple" in layer info; Ok ?
Now, you decide that this group must be on layer 14 : you indicate layer 14 in layer info area. And what happens : all entities are now on layer 14. (explode the group will complete to convince you).  

Same operation with a nested group : instead of "Multiple", at the first time, the infobox indicate the layer Nr in which the nested group was created (i. e. the active layer when you creat the nested group, for example layer 5) Ok ? it's the first dissimilarity.
Second one : now, instead layer 5, you indicate layer 14 in layer info area. Ok, the nested group is now on layer 14, but ... if you look at each entity individually (the infobox allows you this possibility too), you will see that has each entity has retained its original layer. Fantastic, right ? (explode the group will complete to convince you too).

Why is it a big advantage : because many of us are now working with Linestyle or color by layers.
In the first case (using "regular" group), moving the group to another layer gives you unespected result, depending of the linestyle and color of the new layer the group (and all is entities) will now have.
In the second case (using nested group), moving the group to another layer gives you a good result : anything regarding the entities that the group holds has changed, since each entity contained in the group has retained its original layer, i. e. with its linestyle and color by layer.
OK ?

Then, in order to use the nested group as any other entity with the layers properties (lock or visibility), the "visibility by host layer" stands out as the most practical and most intuitive way.
QED

JJG

Not forgetting, of course, the other great advantage of nested groups, which lies in the very name of these groups : they can be nested ... So multi-level.

Butter, and butter money...

Dr PR

JJG,

I have experimented with nested groups and the "Don't use nested groups" option.

1. With "Don't use nested groups" selected there are no hidden objects. If layer X is active and you select and group objects on layer Y the group will be on layer Y, and nothing will be added to layer X.

If you create a group, then group it with something else, there is only one group level.

If you select the group, open the Info Box, and move it to another layer, everything moves to the new layer and the Info Box says it is on the new layer.

When you explode it all objects are independent (ungrouped). This is the "single layer" group behavior of earlier versions of the program.

2. With "Don't use nested groups" not selected you do get hidden objects.  If layer X is active and you select and group objects on layer Y the group will be on layer X (Info Box) and the objects will be on layer Y (but the Info Box says they are on layer X - totally screwball!).

If you create a group, then group it with something else, there are two group levels - the first basic group and a nested group.

If you select a nested group, open the Info Box, and change the layer none of the real objects moves - only the hidden object moves (again, totally screwball!). The info box says the group has moved, but there is no way to find out where the real objects are - totally screwball! How are you supposed to move the real parts of a nested group!?

When you explode the nested group the original group remains - somewhere. That is the only thing about nested groups that works correctly.


****


What I find really strange about your "logic" is that it defies everything about how the program should work.

1. Individual objects (lines, planes, solids, etc.) can be selected, moved, moved to new layers, etc.

The purpose of a group is to associate multiple objects so they behave as a single object. After being grouped they should behave exactly as a single object.

When an existing group is grouped with other objects, the new multi-layerd group should behave exactly like individual objects. In other words, there should be no difference in behavior for individual objects, single groups or nested groups.

Individual objects do not have extra invisible, unselectable objects on a layer not containing the object. Groups and nested groups should not have invisible, unselectable objects on layers not containing parts of the group.

Again, to the user a group or nested group should behave exactly like a single object.

2. If you are using line style and color by layer, everything on a layer should have that layer's linestyle and color.

If you move a group to a layer it should assume the properties of that layer. When it does that is not "unexpected." That's what layer properties are for!

If that is not what you want, don't move the group to the layer, or don't use layer properties.

Phil
DesignCAD user since 1987

JJG

Quote from: prl on July 08, 2012, 02:23:11 PM
Quote from: JJG on July 08, 2012, 11:41:41 AM
Please, try it before saying it is not the good solution.

And for me, the fact that entities remain ever in their respective original layer in nested groups (if you use the infobox to move the nested group to another layer) is a big advantage compared to classical groups or improper solids, with which you lose all entities's original layer informations when you move the group or the improper solid to another layer (via infobox or any other way to do it) : with nested groups, actually in the versions I have on my machine, if you explose (recursive or not) the nested group, you can retrieve all entities exactly in the original layer they were created.
Fantastic, right?

Not to worry.  Nothing will be undone, just trying to "get it".  I've read your paragraph above a few times. Isn't this the way blocks work.  They retain the original layers within the block though the block lives on a single layer. When exploded, the block reveals the entities original layers.

Yes, in some ways, but better, since one can act on anything that the nested group contains (via the infobox), and especially, that every point of construction of each entity is available in Point Select Mode (Ctrl 1)
But cons, relative to the blocks, make copies of nested groups will increase the file size very quickly, and in the proportions of the number of copies, as with "regular" groups (i.e. non nested groups).

JJG

Dr PR,

I'm telling of moving the nested group's layer via the layer info area founded in the infobox, not through any other way.
Please, try it in v21 (that I have too, and in which it works, I'm sure, like Lar has confirmed too).

Probably will we be able to find out why we do not understand each other.

when in 2. you say "and the objects will be on layer Y (but the Info Box says they are on layer X - totally screwball!)", have you tried to look at the entities individualy through the infobox ? or are you saying that because when you select the nested group and open the infobox, it's appeared "Layer X", which is the layer of the nested group ?

Concerning the rest of the problems you encounter with nested groups by locking or making some layers not visible, it is precisely because in the U.S. version of DesignCAD you have, there is no possibility of "visibility by host layer", then your nested group does not react as if it were a single "object" (as you say it right) placed on only one layer : the host layer. OK ?

prl

#39
Quote from: JJG on July 08, 2012, 03:57:30 PM
now, ok, as our last french president said (shrugging his shoulders) :
et ben, j'vais vous l'dire !


Ha, our political types will never repeat a question for fear of admitting they actually heard the question!

JJG, thank you for the insights.  I think I'm starting to see the situation.  The new nested groups is actually a hybrid/partial implementation of a single instance editable block.  This could be a unique DesignCAD feature if it didn't disrupt simple 1 level groups.


DrollTroll

Indeed, nested groups are essentially a "poor man's block" without reference points or editable attribute definitions. Just as a block can be created on any layer (regardless of where its constituent parts are), so can a nested group. Just as you can hide or show some or all of a block's contents by turning layers on and off, so you can with a nested group. Just as moving a block to a different layer doesn't affect the layer of its contents, so with a nested group.
25 years with DesignCAD

JJG

Quote from: prl on July 09, 2012, 04:57:49 AM
Quote from: JJG on July 08, 2012, 03:57:30 PM
now, ok, as our last french president said (shrugging his shoulders) :
et ben, j'vais vous l'dire !

Ha, our political types will never repeat a question for fear of admitting they actually heard the question!

JJG, thank you for the insights.  I think I'm starting to see the situation.  The new nested groups is actually a hybrid/partial implementation of a single instance editable block.  This could be a unique DesignCAD feature if it didn't disrupt simple 1 level groups.
Prl, the solution to don't disrupt simple 1 level groups is to not use simple 1 level groups, but, instead of, to use "improper solids", which give exactly the the result as "regular" group (i. e. non nested). Then, you can use nested groups without any trouble, and therefore, if you have the option "visibility by host layer", it's then a pleasure to work with !

JJG

#42
And thank's to DT for confirming the way of working of the nested groups, that I have tried to explain, and to say why this is finally not so bad !
;)

prl

Quote from: JJG on July 09, 2012, 12:17:09 PM
. . . is to not use simple 1 level groups, but, instead of, to use "improper solids", which give exactly the the result as "regular" group (i. e. non nested). Then, you can use nested groups without any trouble, and therefore, if you have the option "visibility by host layer", it's then a pleasure to work with !

I generally avoid using improper solids since I use many routines that count and select real solids.  All and all, sounds like you are doing more or less what I do with my hidden block routines . . . http://forum.designcad.com/index.php?topic=4384.msg25922#msg25922.

I need to let this all sink in for a while . . . . . until the next DesignCAD distraction. :)

JJG

Quote from: prl on July 09, 2012, 12:52:20 PM
I generally avoid using improper solids since I use many routines that count and select real solids.  All and all, sounds like you are doing more or less what I do with my hidden block routines . . . http://forum.designcad.com/index.php?topic=4384.msg25922#msg25922.
Ah, ah, I will give a look at and try it.