Use material property in part properties

Hello
I would like to add the standard on materials, and I saw that there are personal properties in materials
The idea is to select a material and automatically retrieve the information of the standard in the properties of the file, to then have it in the nomenclature

I haven't figured out how to link the properties
Thank you

… I didn't understand everything...
But if you want to retrieve information from the " Custom " tab from the material editor...

it's by macro (API) that it happens:
https://help.solidworks.com/2022/french/Solidworks/sldworks/HIDD_DLG_MATEDITTAB_CUSTOM.htm?rid=141303

See an example here:

Kind regards.

Thank you, that's what I'm talking about
In my idea, when I select a material, a custom property of the part would be related to the property of the material (example for the standard)
That way, with each change of material, the standard is updated automatically

and thanks for the macro, but it means every time you have to run the macro manually when you change the material