Hello guys!
Long story short. We have complicated app for design automation. 3D model gets created by pushing parameters from .NET app via API.
Master Model has 12 configurations. Default - complete model. RHDOOR - right door and so on.
So the mechanism working by iterating through configurations and exporting configuration specific BOM to *.csv file. App opens Master Model drawing template, adds configuration specific BOM :
swBOMAnn = swView.InsertBomTable4(True, 0, 0, AnchorType, BomType, cfg, tableTemplate, False, swNumberingType_e.swNumberingType_Detailed, True)
Then app reads it from SW into array, sorts it, saves it ..... same for other 12 configurations.
The problem:
Its supposed to be (4) A-00047 for the entire assembly. (2) for LHDOOR configuration and (2) for RHDOOR configuration.
We noticed when creating the BOM some of the assemblies don`t show sub-parts see below: We have 2 identical instances of part A-00047. One shows sub-parts the other one doesn`t. That basically screws over our BOM and part counts.
When we switch configuration to Default (All components together). I can see all of them: (see item 3 - QTY - 4..
Any help appreciated.
Alex
SolidworksApi macros