Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
Am I missing something here? I need to check and then initiate the parent BOM row from the current one. So basically I need to iterate upward through the tree up to the root BOM node.
This is what I have done (which does not work)
Function GetBOMTreeTotalQTY(oRow As Inventor.BOMRow, intQTY As Integer) As Integer Dim oParentRow As Inventor.BOMRow If oRow.Parent IsNot Nothing Then oParentRow = oRow.Parent() <== This is where it fails GetBOMTreeTotalQTY(oParentRow, oParentRow.ItemQuantity * intQTY) End If Return intQTY End Function
Can someone please tell me how to grab the parent BOM row. The help doc says the "parent" property is to find the BOMView OR BOMRow object so I am not sure.
Any help would be appreciated.
Cheers
Solved! Go to Solution.