Macro to set Part Configuration property Bill of material Options to show "Document Name"

Anyone have a macro to set the "Bill of material" option in a parts configurations tab to "Document" name...  I have a few hundred parts to update. 

Also is there a way to do all configs as well?  My issues are all configs are not the same name, and some files have 1 config some files have more.

SolidworksApi macros