Apply custom properties to specific configurations in the active part or assembly document.
With Api set specific configuations
2012 SolidWorks API Help - Get Custom Properties of Referenced Part (VBA)
Sub ll()
Dim SwModel As ModelDoc2
Set SwModel = Application.SldWorks.ActiveDoc
Dim swCustProp As CustomPropertyManager
Set swCustProp = SwModel.Extension.CustomPropertyManager("") ' .CustomPropertyManager("")
swCustProp.Add "Mass", swCustomInfoType_e.swCustomInfoText, "MyValue"
swCustProp.Set "Mass", "MyValue"
Stop
End Sub
SolidWorks Forums: API - How to change configuration name?
https://forum.solidworks.com/thread/78124?
SolidworksApi macros