Family open, add paint to geometry , then reload?

Is it possible to get some guidance in the right direction. I can’t seem to find much on this online.

This example works fine when painting system families inside a project.

However, I am dealing with some complex façade geometry, classified as a generic model. We are attempting to extract specific surface area quantities.

Here’s how I see the process:

Retrieve desired families from active document
Open each family
Analyze geometry and select specific surfaces or faces
Paint selected surface
Load back into the project.

I do know how-to analyze the geometry once I extract it and point to the right surface but I’ve never scripted or worked with geometry inside the family editor, so I’m unsure how to handle this.

I attached an example project with some cubes, if anyone can help me do a simple script to “paint” a face of a cube and load it back intro the project, or point me in the right direction …


RVT2022_TestProjectPaint.rvt (628 KB)