I'm trying to use the following line of code to create aTopLevelOnly BOM. All it does is create a header without populatingany rows with the part data. Is there something wrong with thecode?
I've noticed a couple of posts hinting that SW API does not havethe capability to do this and that the term'swBomType_TopLevelOnly' is faulty. Is this correct? I am runningSW2007.
Set swBOMTable = View.InsertBomTable2(True, 0, 0,swBOMConfigurationAnchor_BottomRight, swBomType_TopLevelOnly,View.ReferencedConfiguration, BomDir)
Is there any other way to do this? Can I first create an indentedBOM (which does work) and then change it to a Top Level BOM in mycode somehow?
Cheers,
BevanSolidworksApi macros
I've noticed a couple of posts hinting that SW API does not havethe capability to do this and that the term'swBomType_TopLevelOnly' is faulty. Is this correct? I am runningSW2007.
Set swBOMTable = View.InsertBomTable2(True, 0, 0,swBOMConfigurationAnchor_BottomRight, swBomType_TopLevelOnly,View.ReferencedConfiguration, BomDir)
Is there any other way to do this? Can I first create an indentedBOM (which does work) and then change it to a Top Level BOM in mycode somehow?
Cheers,
BevanSolidworksApi macros