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

Hi Georg,

 

you just need to iterate the occurrences of assembly document and get which one is dirty, and add them to your browser pane.

 

The below is a blog on how to create custom browser pane. It shows adding an Inventor document node to the custom pane. 

http://adndevblog.typepad.com/manufacturing/2013/07/add-a-new-custom-pane-and-add-node-from-a-defaul...

 

As to iterate occurrences, the code could be:

Sub test()

    Dim oDoc  As AssemblyDocument
    Set oDoc = ThisApplication.ActiveDocument
     
    Dim oAssDef As AssemblyComponentDefinition
    Set oAssDef = oDoc.ComponentDefinition
    
    Dim oOcc As ComponentOccurrence
    Dim oEachDoc As Document
    For Each oOcc In oAssDef.Occurrences
        Set oEachDoc = oOcc.Definition.Document
        If oEachDoc.Dirty = True Then
            'Add it to your browser pane
        End If
        
    Next
    

End Sub