I am trying to create a bill of material for labor time standards. Using a piece of code I found on the web (BOM.zip) I have been successful in assigning the proper level number to each component in the BOM, however the sequence is not correct.
What I get currently is:
0 Car
1 Engine
1 Wheel Assy
2 Pistons
2 Tire
2 Hub Unit
3 Studs
3 Nuts
What I need is:
0 Car
1 Engine
2 Pistons
1 Wheel Assy
2 Tire
2 Wheel
3 Studs
3 Nuts
It appears that one has to step down one path at a time, keeping track of all previous levels because at any given level there may be some items that are sub assemblies and some that are not. Any thoughts or examples on how one would keep track of the sequencing?
Thanks in advance,
What I get currently is:
0 Car
1 Engine
1 Wheel Assy
2 Pistons
2 Tire
2 Hub Unit
3 Studs
3 Nuts
What I need is:
0 Car
1 Engine
2 Pistons
1 Wheel Assy
2 Tire
2 Wheel
3 Studs
3 Nuts
It appears that one has to step down one path at a time, keeping track of all previous levels because at any given level there may be some items that are sub assemblies and some that are not. Any thoughts or examples on how one would keep track of the sequencing?
Thanks in advance,