Trying to create a PDF packet macro

I am currently researching a large macro that would create.bbx (XML) files for Bluebeam. Basically it would open a series ofAssembly drawings and through one process or another, create a listof drawings necessary to manufacture the final assembly drawing.The problem is that I cannot find a way to connect/select the BOMin 2008 and store the active config name referenced by the BOM. Iam familiar with most of the commands but I have yet to see any ofthe macros from the web properly execute the attach3 command andinteract with the bom.
Please helpSolidworksApi macros