Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Owner2229

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."