Rhino.Inside.Revit Railing Material

Hi Everyone! How to modify Revit railing materials in Grasshopper?Thanks

It involves a standard procedure-
1- Query the Material to modify
2- Extract the Materials asset
3- Modify the parameters of the asset
4- Replace the materials with the new modified assets.

see the diagram below:

Okay Think u. So can I create a new material and give it to it?
like this…

Is this component is a Revit railing category? What your solution shows works mostly for curtain walls.

I know, Can the railing be replaced like a wall? And not just modify the material

Hi Sijia,

Railings are one of the more complex Systems in Revit and difficult to control programmatically.

Railing Structure may look like the Walls structures but are an entirely different workflows API wise.

A Railing Type can be replaced with the Element Type components

Credit for the image above belongs to…

1 Like

All right…Thank you very much for your answer…

Thank you @Japhy for the great explanation.

In this case I usually define materials per function like Railing infill panel, baluster material. Handrail material. So it is independent of the physical characteristics. Thus you can easily switch the material parameters without replacing subcomponents.
This is probably the easiest way in dealing with materials.