When trying to insert a SW BOM table (not Excel based) using the following call the table goes in with no part entries actually in the table. If I insert manually using the same table template it always works as it should. If I insert using the API call and then modify the tables properties (BOM Type), such as to Parts Only, Indented Assemblies Only, Top Level Only - the table immediately fills correctly.
Is my call wrong or is there a bug in the Insert routine?
Set swBomTable = swView.InsertBomTable2(False, vPickPt(0), vPickPt(1), swBOMConfigurationAnchor_TopLeft, 3, "", "C:\Program Files\SolidWorks\lang\English\bom-standard.sldbomtbt ")