I want to export BOM to my ERP program. I need to iterate between model tree. Is there any good sample for this please?
Have a look at the following example: 2018 SOLIDWORKS API Help - Traverse Assembly at Component and Feature Levels Using Recursion Example (VBA)
Try this: Traversing The Components Tree
I found very good sample below link. And it's working like a charm...
2014 SOLIDWORKS API Help - Traverse Assembly at Component and Feature Levels Using Recursion Example (VB.NET)
Now I can transfer it to ERP...
Dear Nilesh,Thanks for information. But This is all details of the design tree. I need to BOM table. And I do not want to use GUI create BOM feature. Because ıt's changable by the user. User can add row or hide rows. By the way sometimes (usually profile and sheet parts!) extra empty rows appear! Because of this I can not trust GUI cerate bom feature. I need to get real information about parts, subasm and quantity of the parts. For example, if part is 3 tmes used in upper sub-asm then I need to see this line only one times but with X3 pcs information. I mean quantity.
Solidworks API is really very poor about BOM utility unfortunately!...
Retrieving data ...