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.

Strategies for hiding blocks

Started by MarkX, August 12, 2011, 08:22:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

Hi all,

Apparently if you define a block out of elements on, say, layer 1, then those elements will always be visible if layer  1 is visible, even if the block itself is defined on an invisible layer (such as layer 2).

Sometimes it is desirable to hide a block object that contains elements on a layer that must remain visible.  I thought wrapping the block in a group might do the trick, but no such luck.

So far the only think I can think of is to define every block on its own layer, so that its layers never get mixed in with a working layer. The other possibility might be to define the elements as a symbol instead. The other way might be to move object a distance away.

How do others handle this situation?

Thanks!
Mark

JJG

Do you tried to use "Visibility by host layer" in the info box , such as for groups ?

MarkX

Quote from: JJG on August 13, 2011, 01:53:54 AM
Do you tried to use "Visibility by host layer" in the info box , such as for groups ?
That sounds perfect -- but there's no such option in the info box on the group I'm looking at.

Is this a feature that has been removed?

Thanks!
Mark

Lar

Press Q for the Options dialog box... go to the View tab... in the 'Display' section activate 'Symbol layers visibility controlled by the symbol host layer'.

Lar

MarkX

Quote from: Lar on August 13, 2011, 09:42:04 AM
Press Q for the Options dialog box... go to the View tab... in the 'Display' section activate 'Symbol layers visibility controlled by the symbol host layer'.

Lar
Hi Lar,

That's for symbols. I'm using blocks. Maybe the message is that I should be using symbols instead.

Thanks!
Mark

Rob S

#5
The principle of blocks is as far as I know that a block can have elements on multiple layers, and you might have situations where you want parts of the block to be visible, so each layer of the block respects the visibility status for that layer.

So, if you created a bathroom vanity block also containing a plug & light on the electrical layer and a sink on the plumbing layer, you could display whatever parts of the block are appropriate to the current view.

Seems if you want to create blocks that should be sometimes hidden entirely and separately from all other parts of the drawing, it would make sense to create all entities of that block on a separate layer.

I believe (not tested) that an inserted block always retains its source layers
User since forever

MarkX

Quote from: Rob S on August 13, 2011, 10:01:14 AM
Seems if you want to create blocks that should be sometimes hidden entirely and separately from all other parts of the drawing, it would make sense to create all entities of that block on a separate layer.

I believe (not tested) that an inserted block always retains its source layers
Hi Rob,

It sounds like best-practice is to put each component of any block on its own layer.

Still, it would be nice if you could toggle a setting that would allow visibility to correspond to that of the block as a whole.

Thanks!
Mark

DrollTroll

Generally, the visibility of a block's component entities are controlled by the visibility of the layer they were originally on. In this case, turning off some layers (followed by a Regenerate) may make parts of a block invisible but not the whole thing.

In the View tab of the Options dialog, there's a checkbox "Symbol layers visibility controlled by Symbol Host Layer". If this box is checked, you can show or hide an entire block by showing or hiding the layer the block was inserted on (the layer shown in the Info Box). In this case, even if you turn off the layers that the block's components are on, the entire block will still be visible or invisible depending only on the visibility of its host layer.

In all cases, turning off the host layer makes all parts of any block on that layer invisible.

Example:
Draw a red box on layer 8, and a blue box on layer 9. Make them a block.
Turn off the "Symbol layers visibility" checkbox in View Options.
Switch to layer 5. Insert a copy of the block.
Switch to layer 1, and hide layer 5. Regenerate. The block disappears.
Turn layer 5 back on, and regenerate. The block reappears.
Turn off layer 9 and regenerate. The blue box disappears.
Turn off layer 8 and regenerate. The red box disappears.
Turn on the "Symbol layers visibility" checkbox in View Options, and regenerate. The block reappears.
Turn layers 8 and 9 back on, then turn off layer 5, and regen. The block disappears.

So to summarize:
Hiding the host layer of the block *always* hides the entire block.
Hiding a layer that contains some of the block's components may or may not hide part of the block depending on the "Symbol layers visibility" flag  in View Options.
With "Symbol layers visibility" unchecked, if you turn off all the layers used by the block, the entire block will be invisible even if the host layer is visible.
With "Symbol layers visibility" checked, the entire block's visibility is controlled only by the host layer.
25 years with DesignCAD

MarkX

Thanks DT !

That's what I was looking for. I followed your example and it worked as you described.

Lar had mentioned this option (thanks Lar!), but I guess I thought the "Symbol Layer Visibility" only applied to Symbols. Maybe if it said Symbol/Block visibility it would be clearer. The documentation is even less clear:

Quote from: DesignCad Help File"All objects are displayed in order, matching the layer where each object is located. An object on a layer with a lesser number will always be on top of an object on a layer with a greater number."

Without an introduction, I would have no clue that this was talking about the visibility of elements that make up a particular block.

Thanks again!
Mark

DrollTroll

Blocks are essentially symbols with some extra behaviors added.
25 years with DesignCAD

Dr PR

DT,

Several years ago (V15 or V17)  I tried to use blocks in a 3D drawing and had a lot of problems with odd material display behavior, the wrong colors, etc. I asked DesignCAD Tech Support about it and was told to not use blocks in 3D drawings.

I could use blocks to reduce some of my file sizes significantly, but haven't tried them because I don't need the hassles I encountered before. Do you know if blocks still have problems in 3D drawings?

Phil
DesignCAD user since 1987

JJG

Quote from: MarkX on August 13, 2011, 09:06:55 AM
Quote from: JJG on August 13, 2011, 01:53:54 AM
Do you tried to use "Visibility by host layer" in the info box , such as for groups ?
That sounds perfect -- but there's no such option in the info box on the group I'm looking at.

Is this a feature that has been removed?

Thanks!
Mark


It is indeed very strange ! : In the current French version of DesignCAD (DesignCAD Pro7000), this feature already exists (please see image below), but not in US-versions. why ?

DrollTroll

Yes, that feature was removed. Nested groups have a layer for the group itself, as well as the layers for the contents of the groups; in this way they were rather like very rudimentary blocks. However, since the group layer was entirely arbitrary, having the group visibility attached to the group layer caused a LOT of confusion and complaints, since users were not in the habit of paying attention to the current layer when defining "classic" groups.

Thus in the newer versions (20 and later, if I recall correctly), the visibility of nested groups is never tied to the visibility of the host layer (the layer that was active when the group was defined). This mimics the behavior of non-nested groups.

Nested groups "seemed like a good idea at the time", but have generally not been well-received. There's an option to not use them in General Options ("Don't use nested groups" checkbox) in versions 19 and up.
25 years with DesignCAD

JJG

Quote from: DrollTroll on August 25, 2011, 08:59:08 AM
Nested groups "seemed like a good idea at the time", but have generally not been well-received. There's an option to not use them in General Options ("Don't use nested groups" checkbox) in versions 19 and up.

they have generally not been well-received, or not well-understand and not well-used ?

because in the french curent version of Designcad, we have the Nested groups feature too, and, personnaly,
I think it was a great step forward and improvement, and for nothing I do wish look back.

So I think it is unfortunate that this feature has been removed.
That it sould not be available if the option "Don't use nested groups" is checked, all right !
But then, pity !!! , may it remain accessible when you do not use this option !