Extract parts and materials from Revit component

Is there a way to extract the different elements from a Revit component, like a window for example, and the materials corresponding to each element?

Like if I want to get a window component, and being able to extract the glass with its material as well as the framing with its material? In a way so that I can match geometry with material?

Depends on how the materials are being assigned…

1 Like

Ok thanks for that. I didn’t know about that extension on the geometry component!