ꟿ DirectShape.ByGeometry, add material

Hello, I have created a script that allows me to place plaster on the desired faces of a stair, includes discounts in areas adjacent to other structural elements.

I have used a node and a package to import it into Revit, but for the first one the geometry surface comes out triangulated and for the second I cannot put material, can the second be modified to add material?
Thanks in advance

1 Like

Use the FamilyInstance.ByGeometry node
DirectShapes can’t have a material i think

3 Likes

Hi @jhonvalvel

Probably this one here will work for you…

Screenshot 2021-05-13 231529

1 Like

Note that this method will create the family type, but will not create an instance thereof.

Conversely the FamilyInstance.ByGeometry node will create the family type and an instance in one shot.

5 Likes

Hi, thanks for your answers, I used the node that you recommended to me, however the reason why I exported it as Directshape, is because it serves me so much to use it in a technical plane, renderings and to obtain the volume, something that cannot be Or maybe I don’t know how to get it from families.

Each DirectShape can have one Material.

In the API, I think it is if they are meshes made with TessellatedFace, which takes a materialId.

https://www.revitapidocs.com/2017/a144b0e3-c997-eac1-5c00-51c56d9e66f2.htm?section=exampleToggle

1 Like

Thanks for correcting me.