Get Row Number iPart/iAssembly

Get Row Number iPart/iAssembly

ngdnam88
Advocate Advocate
276 Views
2 Replies
Message 1 of 3

Get Row Number iPart/iAssembly

ngdnam88
Advocate
Advocate

Hi Everyone,

Is there any way to get the Row Number of iPart/iAssembly by iLogic Code?  Thanks,

000.000-001.PNG

 

0 Likes
277 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor

you can find the row number by looping over all rows like this:

Dim doc As PartDocument = ThisDoc.Document
Dim def As PartComponentDefinition = doc.ComponentDefinition

Dim row As iPartTableRow = def.iPartFactory.TableRows.Cast(Of iPartTableRow).Where(Function(r) r.MemberName.Equals("Part5-01")).FirstOrDefault()
Dim rowIndex As Integer = row.Index

MsgBox("Rownumer = " & rowIndex)

Jelte de Jong
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.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 3

ngdnam88
Advocate
Advocate

Thanks @JelteDeJong,

It's very cool code, it's not get direct the row number but I have some idea from your code.

Thanks you very much!

0 Likes