Set Configuration BOM name option with macro?

Has anyone written a macro for setting the BOM Option to display the Document Name of a part configuration?  Many models downloaded from McMaster-Carr have the single part configuration configured to display the configuration name instead of the document name, and this requires going into the property of the configuration and changing to document name to have the Bill of Material display the saved filename/assigned part number.  I tried recording a macro toggling different selections for the BOM option shown here, but the syntax for each selection appears the same in the recorded macro, so I can determine how to edit this drop down selection.  Appreciate any help/tips on this!

SolidworksApi/macros