Duplicating a layer with Blocks in It

I have a layer with blocks in it, and I right click and “duplicate layer and objects”, and the copy appears.
I want to shut the first layer off, but then both instances of the block disappear (one instance in each layer).

Is there a way to have the instance of the block in the copy layer stay on, when I turn off the original layer? This type of Rhino behavior irks me for some reason :angry_face_with_horns:

Thanks in advance!

P-90 Hum Cancelling to Forum.3dm (140.4 KB)

I’m going to read this:

If I’m still confused, I’ll read it again :slight_smile: and again, and again…and again..

I have same problem. Here what I do:
Use Blockedit to edit your block, change every parts that inside in the block to assign “Default” layer then hit Ok to confirm changes.

Now you can move any block to any layer without effecting everything.

Hopefully there should be very short way, If anyone knows better way?

I’m pretty sure (you didn’t upload the block file referenced by your model) that you have the block item content on a layer with the same name as the layer in your model containing the instance.

You need to name your block layers differently from the layers in the model. One way is to make them sub-layers of a block-specific layer. Here’s an example:

Block file

Model file

BlockExample Blockity.3dm (35.7 KB)
BlockExample Host.3dm (34.8 KB)

If you experiment, you will find you can turn the model layers on and off with impunity. If however you turn off any of the imported block item layers, the elements of the block in those layers will disappear from all instances.

HTH
Jeremy

A way to think about is that each object with a block exists on its own layer. But the insertion point of the block also exists on a layer. So if you turn off the layer the insertion point is on all the objects are turned off.

In strategy us to insert blocks on a layer that is never off and simply turn off the layers that the objects withing the block exist on.

So the insertion point in Jeremy’s example is the layer “Blockity” in the model file “BlockExampleHost”?
How many blocks are there in the model file? 2, plus the layers (Blockity and sublayers) that they “depend” on?

So, the usual steps would be to insert the block into the model file, but make a copy of it to use in the model, and leave the first one alone, or something like that? I just discovered that the first one can be hidden, and the others stay on, unlike shutting off the layer of the inserted block - that’s good.

I’m guessing that how the inserted block behaves has nothing to do with whether it is embedded or linked.

I’m starting to figure it out - thanks, everyone!

The block instances are inserted in the layers ‘Layer 01’ and ‘Layer 01 - Copy’. There are two instances. The block in this case is in the linked external file. The layers Blockity and its sub-layers appear in the model file because of the link to the block file.

There are two instances of the block in the model file. A block instance tells Rhino which block to use and where to place it. While a block can be embedded in the model file, in this case the block is just an external file.

It’s important to realize that there is a difference between a block definition and a block instance.

One of the inherent stumbling points for users new to Rhino’s blocks is that a definition can show up in a model masquerading as an instance (one object serving both roles). Eventually after sufficient headaches, users tumble onto a practical way of dealing with the confusion this causes: they adopt a disciplined way of separating the two functions. That’s what the suggestions here are based on. It starts with the user’s mental model of the block system having these two functions and that it is up to him/her to keep them separate for the sake of organizational sanity.

Could the developers have built this discipline into Rhino at the start? Yes, but they didn’t - mostly (IMHO) because they themselves didn’t at the time recognize the importance of keeping them separate.