# Bug: ExplodeBlock kills layer structure

**URL:** <https://discourse.mcneel.com/t/bug-explodeblock-kills-layer-structure/42200>\
**Category:** Rhino for Windows\
**Created:** [March 14, 2017, 9:29am UTC](https://discourse.mcneel.com/t/bug-explodeblock-kills-layer-structure/42200 "2017-03-14T09:29:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micha](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/micha/32/482509_2.png) [@Micha](https://discourse.mcneel.com/u/Micha)\
**Post date:** [March 14, 2017, 9:29am UTC](https://discourse.mcneel.com/t/bug-explodeblock-kills-layer-structure/42200/1 "2017-03-14T09:29:04Z")

</div>

Hi,

if I use \_explodeblock than the internal layer structure of the block is reset to the current layer. If I use \_explode than it works. Maybe an option could be added to the \_explodeblock command to select the final layer method.

Ciao,  
Micha

PS: Same reported for R6. (no reply there)

> [@Bug: explodeblock doesn't keep layers](https://discourse.mcneel.com/t/bug-explodeblock-doesnt-keep-layers/33690):
>
> Hi, today I found that \_explodeblock destroy the layer structure of the block, but simple \_explode keep it. Is it a bug or did I overseen something? I would like to use explodeblock and keep the layers. Ciao, Micha

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [March 15, 2017, 3:33pm UTC](https://discourse.mcneel.com/t/bug-explodeblock-kills-layer-structure/42200/2 "2017-03-15T15:33:14Z")

</div>

Hi Micha - the workaround for the moment is this -

[ExplodeBlocksToLayers.rhp](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/c/7c4922af4c4daa24a6261719c8c33abed360742c.rhp) (14.5 KB)

Drag and drop that plug-in onto Rhino to add `ExplodeBlocksToLayers` command. You probably want the non-default option for how to treat layers. Indeed it does seem like this a job for `ExplodeBlock`.

-Pascal

---

<div class="post-metadata">

**Author:** ![Micha](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/micha/32/482509_2.png) [@Micha](https://discourse.mcneel.com/u/Micha)\
**Post date:** [March 16, 2017, 6:47am UTC](https://discourse.mcneel.com/t/bug-explodeblock-kills-layer-structure/42200/3 "2017-03-16T06:47:22Z")

</div>

Oh, I feel like we talked about in the past. It’s not easy to keep the little workaround in mind. 🙂

Thank you very much for your kind help. Could you set it on the bug tracker please? It should be a standard function of R6 explodesblock.

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [March 16, 2017, 3:48pm UTC](https://discourse.mcneel.com/t/bug-explodeblock-kills-layer-structure/42200/4 "2017-03-16T15:48:06Z")

</div>

Hi Micha - I added a comment to the bug track item to, hopefully, give it a boost…

-Pascal
