Hello. I have this situation where I imported an external file into Rhino, and everything came in as blocks. The blocks had different layers from the geometry inside them. For instance, my furniture blocks are on the “Furni” layer, but the geometry inside those blocks is on the “Terrain” layer. I need to place both the blocks and the internal geometry on the same “Furni” layer.
What I did was explode the blocks and change their layer, but now I need to group them again. It’s very tedious to manually select each piece of furniture, especially those surrounded by other furniture.
Is there a command to select connected geometries or a way to explode these blocks as groups? Ideally, each piece of furniture that was a block would become a group, allowing me to edit their internal layers without having to go into each block individually.
That file doesn’t contain any blocks, so it’s hard to tell what to do.
When you want to move the geometry in a block definition to a different layer, you can go into block edit mode and move the objects to that different layer.
-wim
Oh, man, sorry. I made it the manual way and saved as the “problem” file… When I finish this project I’ll replicate that situation again.
This block edit mode don’t work in this case. Imagine I have 50 blocks, i’ll have to enter and change layer for each of this blocks. Its a time consuming workflow… Or I’m wrong and there is a way to block edit all 50 blocks in the same time?
Oh man, you are a genius! Thanks a lot. That was so beautiful to see running. I should learn programing to do crazy stuff like this. Is Python the best language to learn to use in rhino?
Python offers probably the best ratio of effort to result.
Personally I prefer c# - but maybe just because I use it for plug-in development.
There are a few topics about this - search the forum if you want to know more.
just if something goes wrong, you will not lose data, and not hate me.
there might be some special cases where the macro stops or never stops - there is no error checking…
I noticed your issue seems to be resolved, but I wanted to share an alternative solution that might work well for similar situations. We encountered a similar problem during our work, which led us to develop a specific command for cases like this.
When a block is created, it is assigned to the active layer at that moment. Even if you copy or move it to another layer, the block components still belong to the original layer. While working with the parent layer turned on can be a workaround, it often causes confusion, especially when you need to edit objects separately.
The ExplodeBlockInSameLayer command helps in such cases. It allows you to explode a block while keeping its geometry on the designated layer. If you first organize furniture (or other objects) by layer while they are still blocks, you can later explode them without the hassle of manually reassigning each piece, making the process much more efficient.
This command is part of byrhinogadget, a free Rhino plugin that includes many useful tools. You can install it via Food4Rhino or by searching for “byrhinogadget” in Rhino’s Package Manager.
I liked what I saw with this plugin. Already downloaded and will try with the next modelling i’ll start. Thanks a lot for your contribution. Many great features with this plugin and already uptaded for rhino 8!
That’s great to hear! If you run into any issues, feel free to let us know. There are many other useful commands in byrhinogadget, so exploring them might be helpful too!