Retrieving Materials from Block Definition Geometry (Rhino 8)

Hello everyone,

I’m stuck trying to convert Rhino Blocks to Revit Families via Rhino.Inside, while keeping the correct material assignment in Revit. The main issue is retrieving the material assigned to each Brep inside a Block definition (I’m assuming one Brep uses one material, no per-face overrides).

I can access the Instance Definition and its definition objects (this seems to be the only way I’ve found to get the block contents), but when I extract geometry I end up with Model Breps rather than a referenced Rhino object. Because of that, I can’t read object attributes (material) anymore, unlike when I manually explode a block instance in Rhino and select the resulting objects.

What is the correct workflow to access the block definition/instance geometry, and retrieve the effective material assigned to each definition-member Brep (by-object)?

Thanks in advance for any guidance.

@Nikita_Bokhan Use Model Object Component