<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add all dirty documents to browserpanes in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5549805#M54757</link>
    <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how could I add all dirty documents to a browser pane?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Georg&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2015 08:30:23 GMT</pubDate>
    <dc:creator>GeorgK</dc:creator>
    <dc:date>2015-03-20T08:30:23Z</dc:date>
    <item>
      <title>Add all dirty documents to browserpanes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5549805#M54757</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how could I add all dirty documents to a browser pane?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Georg&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 08:30:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5549805#M54757</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-03-20T08:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add all dirty documents to browserpanes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5563441#M54990</link>
      <description>Hi Georg,&lt;BR /&gt;&lt;BR /&gt;can I understand you want to add the part/sub-assembly nodes (the corresponding document is dirty) to your own browerpane (custom pane) ?</description>
      <pubDate>Mon, 30 Mar 2015 15:12:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5563441#M54990</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2015-03-30T15:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add all dirty documents to browserpanes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5564543#M55008</link>
      <description>&lt;P&gt;Hello Xiaodong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes that's it what I want to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 06:16:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5564543#M55008</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-03-31T06:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add all dirty documents to browserpanes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5568103#M55074</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you just need to iterate the&amp;nbsp;occurrences of assembly document and get which one is dirty, and add them to your browser pane. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The below is a blog on how to create custom browser pane. It shows adding an Inventor document node to the custom pane.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2013/07/add-a-new-custom-pane-and-add-node-from-a-default-browser-pane.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2013/07/add-a-new-custom-pane-and-add-node-from-a-default-browser-pane.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As to iterate occurrences, the code could be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;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
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 07:03:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5568103#M55074</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2015-04-02T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add all dirty documents to browserpanes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5568467#M55079</link>
      <description>&lt;P&gt;Hello Xiaodong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is not to loop through the assembly and find the dirty files. But how could I add them to the browserpane or change the icon from files which are dirty?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Georg&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 12:34:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5568467#M55079</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2015-04-02T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add all dirty documents to browserpanes</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5569872#M55100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Georg,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;may I know whether you have taken a look at that blog link I posted in the last message? it exactly shows how to add a document to the custom browser pane.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As to change the icon of the browser node, please refer to the two blogs below. Although it is talking about client feature, it is similar to change the icon. i.e. the core codes are:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  ‘create the resource of icon. assume a bitmap 1.bmp exists  ‘ in c:\temp 
        Dim oCnr As ClientNodeResource 
        
        Dim oIcon As IPictureDisp 
        Set oIcon = stdole.LoadPicture("C:\temp\1.bmp") 
        
        ' Create a client node resource. 
        Set oCnr = oDoc.BrowserPanes.ClientNodeResources.Add("SamplePocketFeature", -1, oIcon)

        ' Override the icon for the client feature. 
        oNode.BrowserNodeDefinition.OverrideIcon = oCnr

  &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2015/01/change-icon-of-clientfeature-node-in-built-in-browser-pane.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2015/01/change-icon-of-clientfeature-node-in-built-in-browser-pane.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2012/08/change-the-browser-node-icon.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2012/08/change-the-browser-node-icon.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 11:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/add-all-dirty-documents-to-browserpanes/m-p/5569872#M55100</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2015-04-03T11:28:49Z</dc:date>
    </item>
  </channel>
</rss>

