Filled Region Automatic Naming

Hello,

Does anyone know how i would go about trying automatically rename a filled region type to match its fill pattern though dynamo?

 

 

 

 

 

 

Thanks,

Matt