Inserting BOM Table (API ) error

Jul 20, 2006 1 Replies

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 ")



I know this API works because I've used it in the past. If you specify a top level bom then no bom data fills in until you specify the configurations post creation using bomfeature:setconfigurations. This is outlined in the API help.

I did notice that > When trying to insert a SW BOM table (not Excel based) using the

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required