03-30-2023
08:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-30-2023
08:21 AM
Hi @arkelec. Member is the 'Heading' of an iPartTableColumn within the iPartTable that you get from the iPartFactory object. It is not a regular iProperty, because there is a different value in each row of the table. If you were in an iPart 'member' file, then there would only be one value...the name of the 'member' you have open. Below is an example of getting to one of these cells within the table, when working from the iPart factory document. This is just getting the first row in the table, not looping through every row in the table. This is almost identical to navigating the ModelStatesTable, and similar to navigating a PartsList in a drawing.
Dim oPDoc As PartDocument = ThisDoc.Document
Dim oPDef As PartComponentDefinition = oPDoc.ComponentDefinition
Dim oFactory As iPartFactory = oPDef.iPartFactory
Dim oRow As iPartTableRow = oFactory.TableRows.Item(1)
Dim oCell As iPartTableCell = oRow.Item("Member") '"Member" is the Heading of the iPartTableColumn
Dim oMember As String = oCell.Value
MsgBox("oMember = " & oMember, vbInformation, "iPart Row Member")
Wesley Crihfield
(Not an Autodesk Employee)