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.

3d Blocks, layers, and visibility discussion

Started by prl, January 02, 2013, 11:17:01 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

Actually, I think we are all more or less in agreement about how the program works. We have several different concepts of why it works that way and how it should work.

I think all of us agree that the host layer idea is supposed to be a way to control visibility of collections of objects that are on multiple layers. This is true of the way groups, blocks and symbols work. I agree with JJG, prl and others that the program should have a way to control visibility of individual objects, groups/blocks/symbols and nested groups/blocks/symbols.

Some are satisfied with whatever poorly cobbled together scheme happens to work. I am a bit more picky. I despise any scheme that incorporates layers into the object definition, and I think invisible "containers" on layers not actually containing drawing objects are especially reprehensible. These things cause the groups/blocks/symbols to behave differently from ordinary objects, and that should never happen. In addition, they cause artifacts to be created that are dependent upon which layer is active when the group/block is created (this doesn't happen with ordinary objects).

****

Before DesignCAD implemented nested groups I had used programs that implemented nested groups in ways with no odd side effects. Objects, groups and nested groups all behaved exactly the same way. The group and nested group containers were attached to a layer that actually contained drawing objects in the group. You could create groups and nested groups of a given set of objects from any active layer and the resulting groups were exactly the same. This scheme worked flawlessly with no problems.

I lobbied for years to have nested groups incorporated into DesignCAD, and was at first delighted when they finally were. But my delight turned to disgust when I learned that you couldn't create proper nested groups from just any layer. Grouping objects on layers A and B while on layer C gives different results from grouping the same objects from layer D. That is just plain stupid! Now I see blocks work the same way!

****

What is really needed is a spreadsheet-like listing of all objects in a drawing with information about object type, the layer(s) it resides in, object name, etc. This list should have a visibility toggle. Then we could enable/disable visibility of specific objects without having to guess which layer(s) it is on, or having to mess with invisible containers.

For this to work we need a selection filter to restrict the list to specific object types, layers, colors, materials, etc. In drawings with hundreds of thousands of objects this will be essential. For it to work well objects need to have attached names.

We will still need layer visibility control, for layers are an important way to organize drawings. But layer visibility should influence only drawing objects on the layer that is made visible/invisible. The types of objects on the layer should not matter - all should behave exactly the same.

Now there is a New Years wish!

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on January 08, 2013, 09:05:49 PM
I certainly don't follow your reasoning.
You said "You shouldn't have entities that defy the layer visibility settings."

Phil,  I'm a bit short on time and so I haven't absorbed the rest of the posts.  The ON setting (checked), is aimed to control only the top most block.  Maybe it is the wording that is misleading.  The child blocks within the parent blocks are now only encapsulated entities and are not considered host layer items. 

With the setting OFF (not checked), the block behavior (being able to turn off portions of your parent block) is standard across AutoCAD, DesignCAD, SketchUP and probably most other CAD programs. 

The other setting, the ON (checked) setting is so far unique to DesignCAD.  Probably added because folks were complaining about things missing without an apparent reason (though there is one, the source layers of the items within the block).

I'll catch up on some of these posts on the weekend.


Garry K

Phil,

I do see value in having objects (blocks, groups etc.) containing drawign elements that are on different layers. It all depends on how you want to view the drawing - much like how a cross tab in SQL allows you to slice and dice warehouse data.

Take a set of cabinets as an example. I would like to have a named block for each cabinet - that I can turn visibility on / off with via a simple list - much the such as the layers list. I would also like various parts of the cabinets to reside on different layers where I can view various aspects of the cabinets such as counters, toe kicks etc.

I have switched over to blocks from groups since it simplifies things in SU.

I then tried to create blocks on layer 1 and move them to which ever layer I needed. On the surface sounded so simple (humor intended), however it turned out to have issues. The artifacts were one problem that I was able to over come only by forcing the setting of "symbol layers visibility controlled by symbol host layer". All it meant was that I had to keep layer 1 turned off and the artifacts disappeared. Interestingly when I exported the dwg to SU - the artifacts did not appear. With SU I had to keep layer 1 turned on, otherwise the entire drawing disappeared.

Anyway - not satisfied with this approach I tried another. Simply create all solids and move them into their final place and then create the blocks. All I needed to do was store the block name with the solid Sys$(300) until I looped through all of the solids and created blocks. In this case I created the block on the same layer as the solid.

The other trick I needed to do was store the nested block definition in an array and find a way to tag each solid with enough information so that the blocks contained in the nested block could be identified and selected.

DC should have a simple way to traverse drawing elements selecting all the necessary underlying entities. It would be nice to have a numeric usertag that could be assigned at the time of solid creation. If would be really helpful to have selects that would select by solidid and select by usertag AND select all the underlying entities.

Then of course there are the outstanding bugs and regressions.






prl

#33
Phil, I've had a chance to digest your post.  I would agree that having seemingly empty layers control visibility of portions of your drawing without offering some insight as to what is going is poor design.  This is probably what drives the whole layer 0 concept. 

AutoCAD with their xrefs offers the simplest approach, one I like.  If in my main drawing I have a layer called "doors", and I pull in an xref drawing and it also has a layer called "doors",  the ACAD layer manager will label the xref door layer something similar to "xref_file_name_doors".

Now the big problem with DesignCAD is we don't use layer names, otherwise, a DesignCAD block could easily prepend the block name to the encapsulated entity layers.  This way when we opened the layer manager in DesignCAD, things would make sense as to why you have extra active named layers.  They belong to blocks.

Another approach I'd like is if you double clicked on a block, it would load you into that block's drawing environment.  The drawing within a drawing concept.  Your main drawing is either hidden or greatly faded out until you exit out of this level.  But when in the block drawing environment, the layer manager reflects the layers of the block, nothing more. You could keep drilling down nested blocks like this. 


Dr PR

Gary,

Way back in the dark ages (when groups were first introduced into DesignCAD) I thought it would be a big mistake to create groups of objects on different layers. My reason was that disabling one of the layers would make part of a group disappear, and part would still be visible. Then, what would happen if you tried to select the visible part of the group? Is the group locked because part of it is on an invisible layer, giving you a visible object that you cannot select? Or can you select and move whole group, including the invisible parts? Either case leaves something to be desired.

Well, I do create groups on multiple layers. It is very useful to be able to place different parts of an assembly on different layers, so visibility of the various parts can be controlled separately. I just have to be careful and be sure all layers are visible before I move a multi-layer group. Unfortunately, there is no easy way to determine all the layers the parts of a group reside on.

Blocks are a bit more complicated, but I can see where multi layer blocks would also be useful.

I especially had hoped to be able to create nested groups of groups on multiple layers, but working with nested groups is such a PITA that I don't use them. Ditto nested blocks.

Phil
DesignCAD user since 1987

Dean

Quote from: prl on January 10, 2013, 04:57:35 AM
Quote from: Dr PR on January 08, 2013, 09:05:49 PM
I certainly don't follow your reasoning.
You said "You shouldn't have entities that defy the layer visibility settings."

Phil,  I'm a bit short on time and so I haven't absorbed the rest of the posts.  The ON setting (checked), is aimed to control only the top most block.  Maybe it is the wording that is misleading.   The child blocks within the parent blocks are now only encapsulated entities and are not considered host layer items. 

With the setting OFF (not checked), the block behavior (being able to turn off portions of your parent block) is standard across AutoCAD, DesignCAD, SketchUP and probably most other CAD programs. 

The other setting, the ON (checked) setting is so far unique to DesignCAD.  Probably added because folks were complaining about things missing without an apparent reason (though there is one, the source layers of the items within the block).

I'll catch up on some of these posts on the weekend.

Prl,
Thank you for the clear explanation, now I get it!
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit