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.

Nested group fix

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

Apparently once upon a time Groups were a mechanism for binding certain objects together -- almost as if you had written a macro that selects certain objects upon command. Some people have a hard time getting their minds around the idea that Nested Groups are now objects -- like containers. To me this is a very natural way of thinking about things.

Think of a series of nested glass cups. If the outer glass is opaque, you can't see the cups inside. If the outer glass is clear, you can see everything inside. Its just that natural.

In the event that you "lose" a group on screen, just turn on visibility of all layers and select the object. When you select the object, the host layer will show up in the info box. You can then change it to whatever layer is more suitable. Not a big deal.

People working in modern CAD systems expect sensible ways to do away with clutter and concentrate on the job at hand. Setting the visibility of a nested groups is the quick ticket.

The other approach, would be like that of sketchup, where you can hide any object away. The problem with the SU approach is the lack of granularity. You can't make entire sets of objects have their own visibility status. Visibility is normally controlled within DC via layers, so the ability to assign layers (host layers) to each Nested Group makes complete sense -- if and only if visibility of the Nested Group is also controlled by the layer of the Nested Group. I don't see much point in locking groups by layers if you can't also control visibility by layers.

I really haven't seen anyone give an explanation that makes sense for what is so bad about assigning nested groups to their own layers. I've all I've heard is that someone, sometime, for a brief moment, couldn't find an object. So what ? Why not just turn on the visibility for all layers and find the object? 20 seconds and DONE. And after that, you'll always be careful to check what layer you're on before defining a group. Is there something else?


Mark

 

paulerens

Hi JJG,
Many thanks for the effort to explain the use of (nested groups).
The problem is in the fact that we have the American version.
Without the ability of "visibility by host layer"
As you puts it, there are the same advantages in the use of nested groups as  in the use of blocks.
Why this feature has disappeared from the American version?
In my view, this feature has never existed.
I have version 13 to 22 and nowhere  there is that possibility .
Thanks again and have a pleasant fourteenth July evening.

Paul.

JJG

#62
Paulerens,

You are welcome !

I have said this option (of "visibility by host layer") has been removed from the U.S. version of Designad because DT himself has said that (look again at   http://forum.designcad.com/index.php?topic=3856.msg21639#msg21639  , maybe a beta-version ?? ), but because the first U.S. version I have buy is the v19, indeed, like you, I've never seen it in an earlier U.S. version : also, ---> assumed, but confirmed by DT.

But the first french version it has been implemented in (v18.33), is the one the nested groups appeared for us (the french peoples) for the first time too. Also, this new feature (nested groups) was totally "controled" and "mastered" for us (the french peoples) concerning his behaviors relatively to nested groups and visibility-control.

Plus, Thank you for your comprehension of what I have tried to explain here, in this topic.

JJG

MarkX,

Thank you very much for supporting the concept of "visibility by host layer" for nested groups, like me.

As you mentioned, the ideal would be to achieve something similar to Sketchup, where you can have a whole overview of the nesting inside the nested group ;

But in DesignCAD, the only way (currently) to obtain information about the selected "objects" is the infobox, and I doubt that one day, however distant, the inbox would be able to provide such details (or even an overview) of the tree of a complicated nested group, ie like the one shown on the image below (just try to imagine what it can done with a 256 nested level ...!!) :

But the critical first step would be to restore this option of "visibility by host layer" for nested groups, and it would be, as Armstrong said, "a big step" (for the designcad's users, in default of to humanity ... ! )
;)

prl

JJG, thanks for the graphic.  What you have demonstrated is something I would call a component tree with nested subcomponents.  "Component" being something that behaves like a block but doesn't have the class/instance linkage that occurs with a block, only single separate instances of the copied component.  All recent CAD programs know the need and value of a component browser tree. The infobox we have is sadly a joke but I can't imagine it changing.  DesignCAD in that aspect is stuck with ancient dialogs.

It is also a shame IMSI didn't first create nested groups normally like in all other CAD programs (AutoCAD included) and then as an added feature in the next release offered the ability to take a standard nested grouping and change it into a group component on a per selected item basis.  This way we would have normal group nesting and for you the more advanced component grouping with block layer visibility relationships.  We wouldn't be beating each other up regarding the proper behavior and definitions of the term nested "whatever you want to call it".

As a side question, how do you use DesignCAD?   Primarily 2d architecture or mechanical drafting or 3d modeling (or both)?  Still trying to gain a better understanding of your explicit workflow using these components  You are obviously placing the entity 34 on carefully selected layers for visibility control.  Are you creating them (the components) on the side in a separate DesignCAD drawing (like a parts library of sorts) and inserting them etc?

prl

#65
For those of you with the popcorn and Cola wondering how this drama ends, if you have version 19, you can reproduce the behavior JJG is explaining.  I've attached a pic for the relevant flags you need to turn on.  In the pic, the nested group was "instanced" while on layer 10 (the one with the name CL_10 though you can't read the layer name because IMSI refuses to give us a useful infobox).  The actual drawn entities are on other layers. When you select a nested grouped, the infobox shows you the layer for the topmost component "instance".  For JJG when he wants to move the "instance" (aka, the entity 34), he selects the layer dropdown dialog in the infobox and picks a new layer. This physically moves the invisible entity to a different layer, not the actual drawn entities. This is similar to how blocks work and takes a different mindset then traditional groups. It is a more complex and intricate way of organizing your work.  It is a real shame this implementation messes up normal groups.  Now that I understand it somewhat, I could use this, but not if it hoses up my normal groups.

JJG

#66
prl,

congratulations for having refound the version that effectively had this feature of "visibility by host layer" for nested groups !!!

Really, your old signature (DesignCAD's gnawer) was merited, so much you know this software in its every corner.

For my part, I uninstalled this version since I then had the v20, then v21, to stay "up to date" when it comes to import DWG files created with the latest versions of Autocad , or other programs that create dwg with the latest standards (indeed, the French version of DesignCAD, I work with, is not as frequently updated as the U.S. version, and I will not deny non-more than when I bought the v19, it was also to be better able to discuss on this forum).

Ok, since we have now refound a U.S. version where this feature works, we will really be able to see and test its advantages and benefits.

JJG

Quote from: prl on July 15, 2012, 05:50:39 AM
...
As a side question, how do you use DesignCAD?   Primarily 2d architecture or mechanical drafting or 3d modeling (or both)?  Still trying to gain a better understanding of your explicit workflow using these components  You are obviously placing the entity 34 on carefully selected layers for visibility control.  Are you creating them (the components) on the side in a separate DesignCAD drawing (like a parts library of sorts) and inserting them etc?

How I use Designcad ? : Yes, as you say, primarily 2d mechanical and 2d architecture drafting, and secondary 3D modeling, to check the feasibility of some things, or even to generate 2D views of some 3D complex results ... and also to generate 3D images that I produce for bidding.
I am the engineer of the Kern's pipe organ manufactory, Strasbourg, France.   http://www.kernpipeorgan.com/

So, a big part of my job is to produce the drawings for bidding, as I said, and then, when successfull, to produce all drawings and details for the construction in ours workshop (20 employees) : unnecessary, therefore, to clarify that I should avoid wasting my time, and that I must adopt effective and fast work methods.

And you are completly right, prl, in your description of the way I use and work with Designcad : I creat some components 2D, or 3D. Concerning the 2D ones, I work with a method "close" to the old drawing board, namely with what I call "the Rötring kinds", which are layers with line widths, line scales, and line color, in order to match the styles of drawings I have to produce.
Then, when a component is completely designed in its necessary views, I add attributes that will allow me to do the counting, etc. ...
Then I group the entities of each views of these components  (which may of course include some sub-components) using nested groups, but taking care that the pyramid of nested groups of each view starts by improper solids, and not simple groups (I already explained the advantage of this technique, in the above pages).
Then of course I save everything, but not as a symbol : as simple drawing.
To use the views of these components in other drawings, I prefer to stay at the "stupid" Ctrl C - Ctrl V, than go through the "load symbol", perhaps out of laziness, but also because it's so simple and intuitive ... (I love what is simple and intuitive, and it is undoubtedly one of the reasons why I prefer Designcad to any other Cad-programm ...)

Ok?
then as you have understood, I manage all views of the components with the functionality of "visibility by host layer", exactly as you say it :
QuoteFor JJG when he wants to move the "instance" (aka, the entity 34), he selects the layer dropdown dialog in the infobox and picks a new layer. This physically moves the invisible entity to a different layer, not the actual drawn entities. This is similar to how blocks work and takes a different mindset then traditional groups. It is a more complex and intricate way of organizing your work.
It's very simple, and it works !

For 3D the same way.

Note : from my point of view, the "regular" groups (ie not nested) have this (enormus) disadvantage that one can not manage anything from their "visibility", except to assign them to a layer to take advantage of this opportunity, but in this case, you'll lose all the properties of origins of each entity, since then, all entities will spend in the new layer, and everything is lost forever.

MarkX

Quote from: JJG on July 15, 2012, 01:54:09 PM

How I use Designcad ? : Yes, as you say, primarily 2d mechanical and 2d architecture drafting, and secondary 3D modeling, to check the feasibility of some things, or even to generate 2D views of some 3D complex results ... and also to generate 3D images that I produce for bidding.
...
Just curious. Why are you using the English version AND the French version? Is the French version on a completely different development path?

Thanks!
Mark

Dr PR

JJG and Mark,

I do not misunderstand what you are saying - I have been using DesignCAD and other CAD programs for a quarter century. I simply think you are totally wrong!

I am not suprised to learn JJG works mostly in 2D, for with 2D drawings what he is talking about could be useful, and I am not opposed to implementing something like it in DesignCAD.

But with 3D drawings the current implementation of nested groups is loony, and visibility by layer is totally nuts!

3D CAD has virtually NO resemblance to 2D CAD. Time and again we see people migrating from 2D to 3D that have lots of problems because they do not understand this, In 2D you create a drawing of an object. In 3D you create the object. With 2D you are working on a virtual drawing plane. In 3D you are working in a virtual universe.

****

Try to understand 3D modeling. We are working with virtual representations of real things, and the MUST behave in 3D space like real things.

In 3D CAD groups and nested groups MUST behave exactly like simple ungrouped objects. The same rules must apply to all, just as the same laws of physics apply to everything in the real world.

So moving groups and nested groups MUST work exactly as moving simple objects.

CAD programs allow some options that are not available in the real world. Visibility of individual objects is one of these things, virtual layers is another. These are useful for controlling the CAD program - but they are features of the program, AND NOT THE OBJECTS!

That's what is so frustrating about JJG's arguments. There is absolutely no rationale in his mixing of program functions and object properties. It is totally wrong! In 2D drawings it doesn't matter much, because you are not trying to simulate the real world - not even in a small way. But in 3D CAD real world simulation is what it is all about. And assigning program properties to virtual objects is the most screwball thing you can do!

Program functions and object properties are entirely different categories, and must never be mixed. I have used programs that have implemented nested groups correctly, so the resulting groups have no extraneous irrational properties.

Blocks and symbols have been mentioned occasionally. These were early attempts to simulate paper drafting with templates. They are totally different from groups - that's why we have groups.

****

Again. I do not object to creating a program function to lock/hide individual objects or groups of objects. But groups are the worst place to implement such a scheme. This is a program function, and not properties of virtual objects, just as layers are a program function, and not a property of objects.

Don't screw up groups - they are representations of real world things. Keep them simple representations of subassemblies that behave exactly like simple objects.

When I see arguments like JJGs I know that the person actually has given very little thought to what CAD programs are supposed to do. Sure, his "visibility by layer" is useful for an extremely limited subset of what can be done with a CAD program, but he clearly hasn't thought out the implications for the full scope of what CAD programs can do. That is why I think he is totally wrong.

Phil
DesignCAD user since 1987

MarkX

Quote from: Dr PR on July 15, 2012, 04:53:35 PM

When I see arguments like JJGs I know that the person actually has given very little thought to what CAD programs are supposed to do. Sure, his "visibility by layer" is useful for an extremely limited subset of what can be done with a CAD program, but he clearly hasn't thought out the implications for the full scope of what CAD programs can do. That is why I think he is totally wrong.
Phil,

You haven't made your case. Why do you insist on viewing Groups as "Program functions" ? Who says they have to be program functions?

Think of Nested Groups as Objects and it all becomes clear. Nested Groups are objects that contain other objects including other groups. Just as in real life, each outer-most container defines how you can see and access the objects inside. Each group inside can have its own layer property, which in turn determines the visibility or access of the objects inside.

I'm trying to understand what you think is so bad about this view-point. The only conclusion I can come to is that back in 1987 Groups were procedural -- something like a macro that selects a group of objects. But that was a kluge to make up for the technological failings of the time.. Built on MFC, modern groups almost certainly are containers, or are programmed to  act likes ones.

Or is that layers, back in the 2D days, represented layers of mylar? But in 3D, layers could be better thought of as "Spaces" or "Universes" superimposed on each other. Each object, including container objects, has to exist in some layer "Universe" and abide by the laws (visibility settings) of that universe.

Perhaps you could just give an example of what actual problem arises from having group visibility associated with nesting groups. I haven't heard any actual example other than the possibility that someone could momentarily lose track of a group when he/she throws the "Hide all" switch. No problem, turn on Show All and click on the "lost" object to determine its layer.  There are many things  a new-comer could do wrong when first using a program, and this seems like a fairly minor issue. To me the fact that you need to know in advance to make your profiles out of planes rather than lines before a Sweep is bigger "gotcha" since you could do an awful lot of additional work before you discover the problem.

Mark

Dr PR

Mark,

You missed it.

I do not view groups as program functions, as I stated above. Read it again.

I will try this one more time, and if you don't get it I will assume you aren't capable of understanding.

****

1. Models of real world phenomena are not program functions. Putting a lot of pieces together to create an assembly that is then handled as a single object is a real world operation. Groups are a way to simulate that association in the virtual world. These are object properties.

2. CAD programs offer us a bunch of program functions to make creqting and viewing virtual models easier. Controlling visibility, or "locking" an object so it cannot be selected/moved are program functions. In DesignCAD visibility and locking are layer functions.

3. Think of it this way - when you take a picture of an object the camera settings do not affect the object, only the functioning of the camera. Likewise, program operation controls should not affect the properties of virtual objects.

4. It is extremely important for 3D modeling that object properties and program functions are not mixed. If this happens, the state of the virtual objects changes with operating state of the program. This is obviously bad (or it is to anyone who has had much experience with virtual modeling). If you don't understand this just take my word for it.

****

I do think DesignCAD has some limitations, and it can be improved. But incorporating program functions into objects is NOT the way to do it.

A. Hiding and locking objects is not a real world operation - you can't make objects disappear and reappear, and there is no way to fix them in place that other real world phenomena cannot overcome.

However, being able to reduce clutter and to hide reference lines, etc. is a very useful thing. Likewise, locking an object so it cannot accidentally be destroyed is another good thing.

Layers allow objects to be hidden and locked, but this has the disadvantage that everything on the layer is locked or hidden. Of course you can place each object on a single layer that has visibility and locking control, but this is rather crude. It was OK until groups were introduced. Then you had the problem of multi-layer groups with part visible and part hidden, and part locked and part unlocked.

It is necessary to be able to hide part of an assembly (group) and view the rest. This keeps the entire assembly intact but lets parts be temporarily hidden to allow viewing the rest. So in some cases you don't want to hide/unhide all of an assembly (group/nested group). But when a group is selected that is partially hidden, everything should become visible. The best way to do this would be to "ghost" the hidden parts with faint outlines, wireframe, etc.

It would be nice to do hide and lock objects (all types) on an object by object basis, but if you do hide something you must have a way to find it again and "unhide" it. And you still need the ability to hide part of an assembly (nested group) and view the rest.

DesignCAD actually has a primitive version of this in the Wireframe mode display - you can hide renderable objects or non-renderable objects. A similar approach could be used to show "hidden" objects and allow you to select them and unhide them with the Info Box. This would not change the object properties, but just the way the program displays them.

B. Obviously groups and nested groups have "containers" or whatever you want to call them. The program must have some means of associating the various objects in groups or nested groups. But these containers must behave exactly like any other object. This is an object property.

When you move a line there isn't some hidden thing that might be left behind, depending upon how you move the line. If you move a line from one layer to another the line will not become locked or invisible if the properties of the former layer are changed. Groups and nested groups MUST work the same way.

You ask what is wrong with the current nested group implementation. I have explained this dozens (hundreds?) of times over the years since the kludge was introduced. For the last time, try to get it! The problem is the damned hidden "container" that doesn't reside on a layer with the actual parts of the group/nested group. This causes the Layers Dialog to show (asterisk) that empty layers (no real objects) are not empty. This is a BUG!

Furthermore, locking this "empty" layer can affect objects on other layers. This is stupid!

If the container was always on a layer that contained a real part of the group/nested group there would be no problem. Originally simple groups behaved this way. Nested groups should have behaved this way, but they were implemented incorrectly. That error should be fixed.

C. Groups and nested groups should move like simple objects. However, simple objects do not reside on multiple layers. When multi-layer groups or nested groups are moved between layers the relative layer structure should be retained. In this way the virtual structure of the object (object property) is not changed when the object is moved through the artificial program layer organization. This would allow assemblies of subassemblies to be moved as single objects without screwing up the assembly structure. DesignCAD does not do this correctly, and that is a bug!

***

You see, I have no objections to implementing a method of object oriented visibility control if it works for all objects equally. That includes simple objects, groups and nested groups (and anything else that may be introduced). However, the method must not change object properties (just the way the program displays them).

Likewise, I have no objection to implementing object oriented "locking" for all object types.

I do object to making a layer a part of an object. That is what JJG is asking for, and it is a bad idea. I don't care if it was implemented in another program - that just means the other program's programmers were stupid. Rather than repeating that mistake it would be better to do it right.

Phil
DesignCAD user since 1987

JJG

Quote from: MarkX on July 15, 2012, 02:05:22 PM
Just curious. Why are you using the English version AND the French version? Is the French version on a completely different development path?

Thanks!
Mark
I said it in the above post :
QuoteFor my part, I uninstalled this version(v19) since I then had the v20, then v21, to stay "up to date" when it comes to import DWG files created with the latest versions of Autocad , or other programs that create dwg with the latest standards (indeed, the French version of DesignCAD, I work with, is not as frequently updated as the U.S. version, and I will not deny non-more than when I bought the v19, it was also to be better able to discuss on this forum).
But for my job, I work with the french version, which suits me better, because in my native language, and includes other "plus" (like these option "visibility by host layer, for example, ...) or some plug-in that the U.S. version has not.

JJG

#73
OK, Dr PR,

I think am beginning to understand where your problem is :

(and before trying to cure him, I would just say that I work indeed often in 2D, approximately 2/3 of my time, and therefore, 1/3 of my time in 3D, which is not insignificant, and that's why, I think, I can say that I have sufficient insight, especially since I came to DesignCAD with the version v7, in 1992, ie now 20 years ago).

Back to your problem (of understanding, and in my opinion, of logic too)

(I would add that this is not the first you have when things are improving, you had the same reaction with dimensions when they changed few years ago, and according to me, it was also a big improvement, even if everything has not been done in one step, and indeed, for us the french peoples, once again, the technical service of Cogistem provided us a plug-in into Designcad, which allowed us to set the dimensions in a few clicks, and very intuive ; decidedly, we are often well cared !).

You say you're a 3D specialist, (which is true ! your realisations are often spectacular),
but however, to manage features of visibility or locking for 3D solids, you don't hesitate to use ... the layers, which are a tool that appears and has been developped for 2D originally.
I am yet totaly agree with you that there is no other way to do it now, (since we are not in Solidworks, or similar : moreover, it seems to me that Autocad, for 3D, uses the same concept concerning visibilty or locking as this used in DesignCAD, ie via layers's control).

But, since you want to lead us in this (sliding) field , what relation between the solids and layers, in the real world ... ?
In 2D, the comparison takes all his sense (on the good "old" drawing board, we could actually do this already), as much as in 3D, it does not correspond to anything "real."
I hope you will agree ...

Now, for groups : please, explain us how you are able to lock, or to hide a "regular" (ie non nested) group ???
Because, personnaly, I do not know, apart from forcing it on a layer, and thus destroying all the original layers of entities it contains.

And therefore, you would impose the same issue for "fixed" nested groups, whereas with the concept that was developed (the "visibility by host layer"), it is much more powerfull and practical ?

(and please, stop saying that a nested group has a layer: it has a host layer, which is completly different).


I'm waiting for your answer.

JJG

#74
Phil,

parallel to the question I am asking you above, I must say that, for me, there are some contradictions in your vision of the concept of groups.

for example :
Quote from: Dr PR on July 15, 2012, 04:53:35 PM
In 3D CAD groups and nested groups MUST behave exactly like simple ungrouped objects. The same rules must apply to all, just as the same laws of physics apply to everything in the real world.

So moving groups and nested groups MUST work exactly as moving simple objects.
OK, for me, definitively agreed with too.

But, one post later, you say :
Quote from: Dr PR on July 15, 2012, 11:17:20 PM
...
It is necessary to be able to hide part of an assembly (group) and view the rest. This keeps the entire assembly intact but lets parts be temporarily hidden to allow viewing the rest. So in some cases you don't want to hide/unhide all of an assembly (group/nested group).

Could you explain me where is the logic ? If a group or a nested group sould work exactly the same way of a single object, how to do this (hiding part of an assembly (group) and view the rest), since for single object it's not possible ... or, please, explain me how you only hide 48.76° of a 360° circle ... ???
hum, hum ...  :o
Also, this request has no sens in my point of view : if you want to do that, please, ungroup the things until you have dissociated the one you want to see from the others.