Automate Choosing material image for IFC in Revit

Can you verify that the IFC parameter really drives the material? I would rather imagine that the in-place elements have a type parameter that could just be None or Default at the moment, which could be easy to fix at once. Anyway, if I am mistaken, here are some tips to get started: