I am creating a detailed list of quantities from a Bill of Material generated from SolidWorks.
Here is my dilemma:
I am using an indented BOM so the parts are ordered and quantified like this:
Item Qty
1 2
1.1 1
1.2 4
1.3 2
1.4 1
2 4
2.1 2
2.2 3
2.2.1 1
2.2.2 1
2.2.3 2
2.2.4 2
I need to find a way to change the quantities of each entry to reflect the totals.
I need it to be read like this:
Item Qty
1 2
1.1 2
1.2 8
1.3 4
1.4 2
2 4
2.1 8
2.2 12
2.2.1 12
2.2.2 12
2.2.3 24
2.2.4 24
Any ideas or snippets of code to help?
Here is my dilemma:
I am using an indented BOM so the parts are ordered and quantified like this:
Item Qty
1 2
1.1 1
1.2 4
1.3 2
1.4 1
2 4
2.1 2
2.2 3
2.2.1 1
2.2.2 1
2.2.3 2
2.2.4 2
I need to find a way to change the quantities of each entry to reflect the totals.
I need it to be read like this:
Item Qty
1 2
1.1 2
1.2 8
1.3 4
1.4 2
2 4
2.1 8
2.2 12
2.2.1 12
2.2.2 12
2.2.3 24
2.2.4 24
Any ideas or snippets of code to help?