Drawing Sheet Configurations

Does any know of a API that will update the configurations ofa subassembly in a drawing file with multiple sheets.
At the present time we are updating BOM tables and views to theappropriate configurations manually. This will lead to mistakes.
I am sure there will be a solution to this. Thanks for pointing mein the correct direction.SolidworksApi macros