Revit Category to Rhino -> force specific layer or default layer?

Graphical Element placed objects in Default layer, but ByCategory-Elements will create blocks with certain layers. Blocks with many different layers inside always causes headache.

How would you bring ByCategory-Element into Rhino inside Revit and place it in a layer you want or just all in default? Not just for a block, I’d like to force everything inside the block in the same same layer I specify so that it’s easier to handle.

You will need to bake them using Elefront or Rhino 8 GH1 components. What version of Revit and Rhino are you looking to do this in?

Revit 2022 and the official latest Rhino. (this would be a lot easier if Rhino can easily change layers inside a block or make it all default at all once, but a different discussion)

I suppose Elefront is this one to download.

Since I’m using Rhino 8, am I able to do it without it as you mentioned Rhino 8 GH 1 components? Could you please direct me how to do so? I’ve read through Rhino inside Revit manual, but I don’t think I found how to change layers. It just mentions new layers are created for category or something. But when Revit models/families are from equipment manufacturer, it can have really weird and long names and categories. I end up with so many unnecessary layers and blocks within blocks, etc.

Yes, I would stick with a normal Bake from Revit to Rhino that creates the blocks for you then modify the blocks in Rhino. Either that or you will need to create blocks for each wall, which is ok too.

I’m still not familiar enough to copy the definitions from the screenshot. Would you terribly mind saving the grasshopper definition of yours, please?

By the way is it not possible to use this ByCategory and somehow add Layer output for Rhino? so that I can still export Revit objects by category into layers I want.

Certainly, (10.8 KB)

Could you please take a loot at this question if this makes any sense?

I realize the grasshopper definition has nothing to do with Rhino inside Revit. It’s just once any blocks in Rhino. I must have not clearly understood what you meant.

I’m indeed thankful for the grasshopper block definition. The reason I ask is because I thought it’d make things easier to manage. I export some family into a specific layer or walls one by one.

This definition tries to read all blocks in the model, and it completely froze.

It only change the layer of objects in a block, objects in blocks nested in blocks still keep their original layers? The 2nd one “All blocks in file” does change everything, but obviously this is not a good way if you don’t want to grab every single block in the file. Any one you can select blocks to change, and it changes all layers inside the nested blocks?

You want to build your own blocks out of Revit? That is an option, albeit not not as simple as the way i showed before. You’ll need to work with the different Revit Element Types, similar to the example below.

Create blocks out of your Revit Geometry on various layers: (10.8 KB)
R22-RhinoBlocks.rvt (1.7 MB)

Working with Nested Blocks:

You can explode the objects in a block definition (will add tree depth)

1 Like

Thank you very much.

Would you mind uploading the new Grasshopper definition, please? is the same as previous one, and it doesn’t look like the screenshot.

^ the image you are showing is file in this post…