Need a macro to save the drawing with custom properties

I need a macro to save the drawing with custom properties as in the attached image.

something like that (400_Porta.slddrw).

All the macros I've seen will get the properties from the drawing and not from the model.

each model has different configurations, I have to design them all. if the save was automatic it would help me a lot.

The macro can be the name of the configuration more the name of the property (componente) "config_Porta.slddrw"

SolidworksApi/macros