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.

prl

Phil,  regarding you actually reading the manual.  Shame on me, I rarely ever look at the manual after version 15.3.  My bible is the macros.hlp files and whatever I can glean from them.

Historically DesignCAD symbols came first (Pro 2000?). Then I think they massaged the embedded symbols code to add attributes thereby creating blocks (version 12 or 13).

I consider embedded symbols and blocks equivalent (less the difference with block attributes which I don't use).  This may be faulty thinking on my part but for visibility rules, so far, this seems to hold true.

As always, I'm one step away from being always right and a half step away from not knowing anything.


Rob S

#16
In my mind, the BIG distinction between Blocks and Symbols is as follows:

Blocks exist as a hidden copy of the referenced object within the main drawing file itself, and are edited within the drawing, by re-defining the "block" object.  From Dr's results it appears that designcad efficiently renders one copy of the block and reuses the rendered image in the model display, greatly improving rendering speed. 

Symbols exist as separate files on disk, only referenced within the main drawing, and are edited by opening a separate drawing file.  No one has tested if the rendering efficiency occurs with multiple insertions of the same unexploded symbol.  Symbols are another  form of x-ref as used by Autocad.

Use of either Blocks or Symbols greatly reduces filesize.

Sending a drawing file containing symbols to another user requires copies of the symbol files on the recipients computer, thus if a user opens a drawing with a different symbol file with the same name, they would get erroneous results.

Exploding copies of symbols or blocks embeds them into the main drawing as unconnected entities.
User since forever

prl

Quote from: Rob S on January 08, 2013, 09:22:49 AM
Symbols exist as separate files on disk, only referenced within the main drawing

Plus we have embedded symbols.  Loaded from disk with a definition of it hidden in the drawing.  Basically a block minus attribute capabilities.

All three are DesignCAD entity type 26, hence I would assume they behave similar with regards to visibility rules.


Rob S


Just curious, have you explored embedded symbols at all?  Such things as:

Does each embedded copy of the same symbol have its own internal hidden file?  If you load 10 copies, does the file size increrase proportionally? If so, file size benefits would be lost.

If not, what happens if you load 1 symbol, edit the source, and load another symbol of the edited file of the same name?  Do you now have 2 or 11 internal symbol files?

I will do some testing, but generally I don't see any benefit to an "embedded symbol"





User since forever

Dr PR

Ah so!

prl's comment that symbols and blocks are all the same entity type explains a lot.

The Reference Manual and help file descriptions that say blocks and symbols are different is incorrect.

I guess the only real difference - if I understand this correctly - is that symbol elements are loaded into layer 1, and we have no choice about that. Block elements can appear on many layers.

The visibility by host layer thing is totally screwball, and apparently it doesn't work correctly. Even though you disable the visibility by host layer for symbols (blocks) it isn't disabled. Turn off the layer where the invisible block attribute is hidden and the block disappears. Totally screwed up!

In a simple drawing you might be able to keep track of which layer controls the visibility of objects on other layers. But in a drawing with hundreds of thousands of objects on dozens of layers  (I have one drawing with about half a million objects) there is no way it can work. Turn off layer X and the objects you are trying to work with on layer Y disappear? That is just plain stupid!

What really bothers me is that each of these types of objects behaves differently from other objects. Imagine if lines had one set of visibility rules, solids another, and curves something entirely different. That would be stupid! To me it is obvious that regardless of the type of object, all objects should behave exactly the same, with no special visibility side effects. A group, block or symbol should behave as a single object, and should react to commands and display options just like a line or solid.

Would you use the program if a line you created on layer X disappeared when you disabled layer Y? That would be totally stupid. These "special" visibility rules for "special" objects are just as stupid.

Like I said, I can't use blocks.

Phil
DesignCAD user since 1987

prl

Quote from: Rob S on January 08, 2013, 10:04:47 AM
Just curious, have you explored embedded symbols at all?  Such things as:

Rob, no.  Still fuzzy about how they really work.  You're flying blind since we can't see a list of embedded symbols unless one exists in the drawing.  For both blocks and symbols we need better tools to see and edit them.

JJG

Quote from: Dr PR on January 08, 2013, 10:46:01 AM
...
Would you use the program if a line you created on layer X disappeared when you disabled layer Y? That would be totally stupid. These "special" visibility rules for "special" objects are just as stupid.

Like I said, I can't use blocks.

Phil

As well as for (actually) nested groups ?

My side, I don't think it's stupid : it's just a question of work's organisation.
For me, when entities are embedded in a "container" (whatever sort), supposed then to react as "one single element", I think what is precisely stupid is the fact you can hide some part(s) of this "single element" by hiding some layers, as it is the case when using regular groups (ie non nested).
Sometimes, it also leads to incomprehensible behavior of the software.
While the concept of "visibility by host layer" corresponds really to the reaction of the container as "one single element", by easy and intuitive way.

prl

Phil,  if you want the block to behave as a single entity with on/off behavior tied to the layer it is on, why not turn ON the "Host layer Controls Symbol" setting.  Would that not eliminate the encapsulated layer conflicts?


Also, your statements about symbols and them loading into layer 1 isn't correct. Symbols can load just like a regular drawing with layers just as you saved them.  With symbols it all depends on how you saved the symbol.  If you saved the symbol entities by forcing all the entities to layer 0, when you load that type of symbol, they come in on the current active layer. 

Rob S

Quote from: prl on January 08, 2013, 10:55:45 AM
Quote from: Rob S on January 08, 2013, 10:04:47 AM
Just curious, have you explored embedded symbols at all?  Such things as:

Rob, no.  Still fuzzy about how they really work.  You're flying blind since we can't see a list of embedded symbols unless one exists in the drawing.  For both blocks and symbols we need better tools to see and edit them.

It seems almost by definition that an embedded symbol would not be able to be edited.  It is no longer tied to the source file, and there is no mechanism to edit symbols within the main file.

I suppose it might be useful where you want to embed a specific brand of fixture, and future users have no way to edit your selection!!!!
User since forever

Dr PR

prl,

Thanks for clearing up the symbol issue. That is something I have never understood. I knew there was a "layer zero entities load to active layer" option and that it was somehow related to symbols.

Turn ON the host layer controls symbols!? I thought the "host layer" was the layer the symbol (block?) was on, and not the layer the objects were on! Somewhere in the Reference Manual it says that is what the "host layer" is.

I tried the two states of the Options/View "Symbol layers visibility controlled by Symbol Host Layer."

1. Disabled (unchecked). Disabling the layer(s) the objects were created on before they were blocked makes all of the objects in blocks disappear - regardless of which layer the blocks were created on or inserted into. This is the way I thought it should work.

2. Enabled (checked). Disabling the layers the objects were created on has no effect of visibility of blocks. Disabling the layer the block was created on (host layer) causes all objects in the block to disappear regardless of what layer they were created on. Again, this is how I interpreted the instructions.

If this was all there is to it everything would be fine. However, even though you disable the visibility by host layer option, disabling a layer containing a block cause the entire block to disappear even if the layers containing objects in the block are enabled.

What's the point in having the visibility by host layer option if it doesn't work?


****

Here is something to really add to the confusion! If  the visibility by host layer option is not selected, and you disable the layer(s) the parts of the block were created on, the objects disappear. However, you can still gravity snap to the objects (you can even select them).

This means you can have invisible objects in the drawing that interfere with normal drawing processes! Bug! You think you are gravity snapping to a visible object on the screen and instead the cursor actually is positioned on something else. If you want to understand the stupidity of this, just create a large multifaceted grid with "Surface Connect" that stretches all the way across your drawing and make it a block. Then hide it. Now try using gravity snap to create new objects! You will be snapping to invisible points instead of the visible objects you want to connect to.

By the way, if a block's host layer is disabled, you cannot gravity snap to the hidden block.

Phil

PS: There is a minor bug in the way enabling and disabling layers works in the Layers Dialog. If you disable a layer containing ordinary objects (lines, solids, etc.) they immediately disappear from the screen. If you disable the host layer for a block or the layer a part of the block is on (depending upon the state of the visibility by host layer option) nothing happens. The block is still visible. You have to click the "Apply" button to make the blocks disappear.

If you enable a layer containing a simple object, a block or a layer containing parts of blocks, the objects become visible immediately. You don't need to click "Apply."
DesignCAD user since 1987

prl

Quote from: Dr PR on January 08, 2013, 11:46:04 AM
If this was all there is to it everything would be fine. However, even though you disable the visibility by host layer option, disabling a layer containing a block cause the entire block to disappear even if the layers containing objects in the block are enabled.

Phil, you are too close.  Both options enforce the same rule when it comes to the block entity and the layer it is on.  The rule - turn off the layer the block entity is on, because it is an entity just like text, a line, a circle, it will be hidden.

To me that makes sense.  You shouldn't have entities that defy the layer visibility settings.

The difference between the two settings is with ON (checked) - the block entity and the layer it is on acts like a total block visibility master switch. It isn't affected by child blocks or encapsulated layers of the things the parent block holds. 

With the setting to OFF (not checked) - child block layers and encapsulated layers of source entities held by the parent block act as on/off switches that are linked to the parent block layer. 

prl

Quote from: Rob S on January 08, 2013, 11:27:49 AM
It seems almost by definition that an embedded symbol would not be able to be edited.

One could argue why not but it since embedded symbols morphed into blocks, they seem redundant.  Blocks are hard enough to manage, embedded symbols seem even more difficult.  One can have an empty drawing packed full of invisible symbol definitions with no way of knowing what they are.  Without a symbol insert function, your empty drawing is a junkyard.

DrollTroll

QuoteI will do some testing, but generally I don't see any benefit to an "embedded symbol"
Embedded symbols were a natural evolution towards blocks. They have the advantage that, since they're embedded in the drawing, you can just share the drawing without having to share all the individual symbol files as well. Otherwise, they should work just like external symbols, visibility rules and all. Unlike blocks, however, embedded symbols don't have customizable attribute definitions and other "tags".
25 years with DesignCAD

Dr PR

prl,

I certainly don't follow your reasoning.

You said "You shouldn't have entities that defy the layer visibility settings."

If visibility by host layer is enabled, visibility by object layer is disabled.

On the other hand, enabling or disabling visibility by host layer does nothing to affect visibility by host layer. Either way, turning off the block host layer hides the entire block. What is the point of having a switch that doesn't work?

All the visibility by host layer switch does is enable/disable visibility by object layer. Huh? Sounds pretty screwey to me!

Phil
DesignCAD user since 1987

Dean

#29
Quote from: Dr PR on January 08, 2013, 09:05:49 PM
prl,

I certainly don't follow your reasoning.

You said "You shouldn't have entities that defy the layer visibility settings."

If visibility by host layer is enabled, visibility by object layer is disabled.

On the other hand, enabling or disabling visibility by host layer does nothing to affect visibility by host layer. Either way, turning off the block host layer hides the entire block. What is the point of having a switch that doesn't work?

All the visibility by host layer switch does is enable/disable visibility by object layer. Huh? Sounds pretty screwey to me!

Phil

Phil,
I see similar results.
>   Parts = blocks
>   Part assemblies = nested blocks
In my tests I find that I have better control over the layer visibility of "part assemblies" and their "parts" with the setting "off" In an active drawing I can freely toggle "on" or "off" each "part" or the "part assembly" or the "parts' in the "part assembly".
With the setting  "on" and when the "part assembly" is on a different layer than its "parts"  I lose the ability to turn "off" a "part" that's nested in that "part assembly" though I can turn "off" the "part assembly"
If this helps any;
I create blocks that reside on specific layers. When inserting a block I achieve predictable results if I always make sure the active layer is the one from that which the block originated from then with these blocks I create a nested block or should I say "part assembly" and then place that on a specific layer. Once a "part assembly" is created I never move it to a different layer.  This is where it can get "confusing" if the "symbol host"setting is "on"> when before creating a "part assembly" if I block>insert one of the "parts" of the intended "part assembly" on an active layer different than the layer that "part"  originated from.  This is an example, I think? What happened with garry k's cabinet macro? He insisted the "symbol host" setting to be "on". I can replicate this behavior.
I think that the setting "symbol layers visibility controlled by symbol host layer" could be more helpful if it was located in the layer options window. This way you could toggle it "on" or "off" from there.

Prl,

If "rules"> govern >"actions" and "actions">govern< "tasks" then what is the primary task of "symbol layers visibility controlled by symbol host layer"? Does this setting have a multitude of tasks? Thanks!
Maybe I need to read again all the information in this thread.
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