raiden_9123
New member
- Local time
- Today, 09:46
- Joined
- Oct 19, 2002
- Messages
- 6
Hi,
I managed to get a good start of the code for this, but am still having trouble getting the proper parts to display in the correct place in the idented tree
Here is a sample array that I have all of an exploded assembly. It is correct - all the proper parts are there with the correct levels. Here is the array structure:
format:
Parent,Component,Quantity,Level
data:
#29,#73,2,1
#29,1404-12-12,3,1
#73,#62,2,2
#73,070-0009,4,2
1404-12-12,#62,3,2
#62,060-6017,13,3
#62,060-6017,13,3
This is what the array looks like. When I indent this based on the level, it indents properly, but the parts are not under the correct part as you can see.
What I need to know is how I can sort this array so that the component parts are under the correct parent.
Please help. I am really struggling on this
Thanks
Raiden
I managed to get a good start of the code for this, but am still having trouble getting the proper parts to display in the correct place in the idented tree
Here is a sample array that I have all of an exploded assembly. It is correct - all the proper parts are there with the correct levels. Here is the array structure:
format:
Parent,Component,Quantity,Level
data:
#29,#73,2,1
#29,1404-12-12,3,1
#73,#62,2,2
#73,070-0009,4,2
1404-12-12,#62,3,2
#62,060-6017,13,3
#62,060-6017,13,3
This is what the array looks like. When I indent this based on the level, it indents properly, but the parts are not under the correct part as you can see.
What I need to know is how I can sort this array so that the component parts are under the correct parent.
Please help. I am really struggling on this
Thanks
Raiden