Not sure but I just insert a BOM table into the assembly, save it out, then delete the table. Works pretty well and saves a lot of custom coding
I Have the same question.
I'm trying to make a VB.net application to develop data exchange between SolidWorks and our ERP.
For this I use the SolidWorks Document Manager API that provides access to information files without opening them in the application. More info: http://help.solidworks.com/2015/english/api/swdocmgrapi/GettingStarted-swdocmgrapi.html?id=c64a324db326402a84186311e072bc1c#Pg0
I can read, edit and create custom properties.
However, despite a lot of research I cannot create a BOM.
I thank you in advance
I don't think you will be able to create a bom in a file that is not opened. for the most part you are only able to edit data in custom properties with the document manager. Try opening the file, creating the bom, then exporting and closing