Message 1 of 4
Parts List Hide Children
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to modify the following code to only hide parts that are apart of an expandable assembly but not the main assembly. I also don't want to look at the item number because some assemblies we renumber and some wont have the "." in the number.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oPartsList As PartsList
Dim oRow As PartsListRow
For Each oPartsList In oDrawDoc.ActiveSheet.PartsLists
Try
For Each oRow In oPartsList.PartsListRows
Try
If oRow.Expanded Then
Visible = False
Else
End If
Catch
End Try
Next
Catch
End Try
Next
After Expanding and hiding rows
Prior to expanding and hiding rows.