Automatically assign static meshes to actor

Hi, i’m looking for a way to automatically assign static meshes to actors. Its a imported datasmith with thousands of meshes.

image
They all have the same name just different numbers.

image
I want to automatically assign a static mesh to each one of them.

image
The static meshes have the same name as the actors “ON_Brep_number”.

What’s the way to do this? Automatically with a script or in any other ways?
Thank you in advance. :slight_smile: