I'm not sure if you understand what your question
is....
The PartItemID and CldItemID values in
ItemAssocArray point to Id values in ItemRevArray. So that's how you
correlate the two arrays. The ReturnOccurrences
option should also cause values to show up in the OccurArray. ParOccId
points to the parent ItemBOMOcc object and CldItemMasterId points to a MasterId
value from in the ItemRevArray.
Now comes the hard part, figuring out what to do
with the data. There are many ways to go from here. You can scan the
data for specific parts of information, you can build a tree structure with the
entire BOM, you can create your own arrays, and so on.
It really depends on what problem you are trying to
solve. Since you are exporting specific parts of the BOM, using nested FOR
loops should work fine.
Doug Redmond
Software Engineer, Autodesk
Inc