Link BOM Config. to View

I am looking to link a top-level only BoM configuration to be the same as my view configuration.  The drawing view is linked to the model's "in-use" or last saved config since the model is an assembly with in-context parts.  Additionally, I have checked the Document Properties box to "Restrict top-level only BOM's to one configuration".   It would be really nice to have a macro to change this for me.  I can't figure out how to change the BoM's reference configuration.  Thanks in advance for any help.

Nick

SolidworksApi macros