rgrayclamps
Mechanical
- Aug 6, 2004
- 376
Hi, API experts:
I noticed that the following code from "Insert BOM Table and Get Data Example (VB), Welcome to SolidWorks and Add-Ins API Help"
'**********************************************************
Set swBomTable = swView.InsertBomTable2(False, vPickPt(0), vPickPt(1), swBOMConfigurationAnchor_TopLeft, swBomType_TopLevelOnly, "", "")
'**********************************************************
only works when BomType is set to 1 (swBomType_PartsOnly) or 3 (swBomType_Indented). It does not work when BomType is set to 2 (swBomType_TopLevelOnly).
I am wondering if you guys experienced the same problem? Do you know what is wrong?
Thanks,
Alex
SW2005 sp02
WinXP sp1.0
I noticed that the following code from "Insert BOM Table and Get Data Example (VB), Welcome to SolidWorks and Add-Ins API Help"
'**********************************************************
Set swBomTable = swView.InsertBomTable2(False, vPickPt(0), vPickPt(1), swBOMConfigurationAnchor_TopLeft, swBomType_TopLevelOnly, "", "")
'**********************************************************
only works when BomType is set to 1 (swBomType_PartsOnly) or 3 (swBomType_Indented). It does not work when BomType is set to 2 (swBomType_TopLevelOnly).
I am wondering if you guys experienced the same problem? Do you know what is wrong?
Thanks,
Alex
SW2005 sp02
WinXP sp1.0