Painting faces - direct shapes or component families

I don’t seem to be able to paint on direct shapes or component families:


Am I missing a step?
Are there other methods for assigning materials to specific faces of a Brep coming from Rhino?

Here i’m assigning a Material to a specific Brep Face and its corresponding Revit Face in a Direct Shape.


RiR-PaintFace-DirectShapes.gh (11.4 KB)

In a Family Document…

2 Likes

Hi Japhy,
These methods work very well, Thanks!
Is there a method to edit face materials of objects imported via the Rhinoinside> Rhinoceros> Import 3dm Function?

Hi Guido,

To answer that question properly i would need to see more of what you are importing.

In general the import is going to come in as one big direct shape then when getting its Element References will not be guaranteed to be in the same order as Element Geometry output. You would need to map those depending on your needs.

Hi Japhy,
I got that far, but when I try assigning materials to faces I get that Revit API error (see original post). This seems to be the case with all 3dm imports, no matter the contents.

I see it now, the imports aren’t available to Paint via the Revit UI as well. I don’t believe this is supported. Using the Add Geometry DirectShape instead of Import will work.

1 Like

Hi @Japhy,

I am trying to paint the face of the wall element.
It seems not working for the revit system family… Is this paint component works only for the directShape?

Thanks in advance.

Junghow,

That should work, what is your about info?

@Japhy,

That’s great news…

I am using the software version as follows:
Revit v2024.2
Rhino3d v8
Grasshopper v1.0.0008
RiR v1.24.8965.4355 (Pre-released)

After seeing your answer, I have installed RhinoInside.Revit_1.24.8983.23389 (Pre-released), unfortunately, I do not get the expected results from element face paint component.

Is the wall being generated in the definition before the modification?

Hi @Japhy ,

sorry… my bad… it works now…
the material shaded color was default… sorry about the wrong report…

1 Like

if this was being done with a family component, is there a way to paint a face without going into the actual family? ie, instance based paint?