02-15-2017
01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-15-2017
01:26 PM
I tried that out, and it gave me an "invalid procedure call or argument." I think it has to do with the fact that it's an iPart.
I created a function to call in my main sub that ended up working:
Function FindDrain(o As ComponentOccurrence) FindDrain = False Dim iPartRow As iPartTableRow Set iPartRow = o.Definition.iPartMember.Row If iPartRow.Item(17).Value = "Compute" Then FindDrain = True End If End Function
By going into Definition.iPartMember.Row, I gain access to the current occurrence's row in the iPart table. Item(17) is the column associated with Drain Port E2. In the iPart table, the feature is either set to "Compute" or "Suppress."