hi
is there a way to access a hidden partlistrow or the visible partlist row??
Solved! Go to Solution.
Solved by rjay75. Go to Solution.
Check the visible property on a PartsListRow to see if it is Hidden or visible.
There's no difference in access to hidden or visible rows. Here's some code that cycles through all the rows and counts the hidden and visible rows.
Dim hiddenRowCnt As Long Dim visibleRowCnt As Long Dim dwgDoc As DrawingDocument Dim prtList As PartsList dwgDoc = ThisDoc.Document If dwgDoc.ActiveSheet.PartsLists.Count > 0 Then prtList = dwgDoc.ActiveSheet.PartsLists.Item(1) Dim prtListRow As PartsListRow For Each prtListRow In prtList.PartsListRows If prtListRow.Visible Then visibleRowCnt = visibleRowCnt + 1 Else hiddenRowCnt = hiddenRowCnt + 1 End If Next MessageBox.Show(String.Format("Rows:" + vbCrLf + "Hidden: {0}" + vbCrLf + "Visible: {1}", hiddenRowCnt, visibleRowCnt)) End If
All the rows are in on collection called PartsListRows. Hidden and visible. Visible Property gets or sets whether the row is hidden or visible.
So in this example the prtListRow.Visible will be true or false for visible if true or hidden if false.
Can't find what you're looking for? Ask the community or share your knowledge.