find occurrence in assembly based on BOM View item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Not entirely sure if this is possible... I am using the code from the API to loop through my BOM of the active assembly. This returns the BOM values on ALL occurence regardless whether they are visible / invisible & suppressed / enabled.
In the code, it uses this code for a componentDefinition
Dim i As Long For i = 1 To oBOMRows.Count ' Get the current row. Dim oRow As Inventor.BOMRow = oBOMRows.Item(i) 'Set a reference to the primary ComponentDefinition of the row Dim oCompDef As Inventor.ComponentDefinition = oRow.ComponentDefinitions.Item(1)
oCompDef is the component Definition of of the occurrence in the assembly. How can i check to see if this occurrence is visible in the assembly?
Thanks
Nigel
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.