<?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 Re: Why does document.BrowserPanes.AddTreeBrowser make the document dirty? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187279#M68855</link>
    <description>&lt;P&gt;OK. That explains some things.&amp;nbsp; But I'm still not seeing a Transient property of a BrowserPane.&lt;/P&gt;&lt;P&gt;See the following link to the 2020 Inventor online Help item for the BrowsrePane Object.&lt;/P&gt;&lt;P&gt;&lt;A title="BrowserPane Object" href="http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-9F6FC721-CCCB-4EA2-92D1-694DC5B12C22" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-9F6FC721-CCCB-4EA2-92D1-694DC5B12C22&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 14:34:41 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2019-12-06T14:34:41Z</dc:date>
    <item>
      <title>Why does document.BrowserPanes.AddTreeBrowser make the document dirty?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9186694#M68852</link>
      <description>&lt;P&gt;Is there anyway around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use a new TreeBrowserPane to show the user some temporary data that will not be saved in the document, but the fact that adding a TreeBrowserPane makes the document dirty is a problem, e.g. with files that are read-only or approved/checked into Vault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried setting the BrowserNodePane.Transient property after creating it, but at that point the document is already dirty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pseudocode here:&lt;/P&gt;&lt;P&gt;private void CreateBrowserPanePOC(Document document)&lt;BR /&gt;{&lt;BR /&gt;BrowserPanes oPanes;&lt;BR /&gt;oPanes = document.BrowserPanes;&lt;/P&gt;&lt;P&gt;BrowserNodeDefinition oDef;&lt;BR /&gt;oDef = (BrowserNodeDefinition)oPanes.CreateBrowserNodeDefinition("some node", 3, -&amp;gt;a ClientNodeResource object&amp;lt;-);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Diagnostics.Debug.WriteLine($"Document Dirty = {document.Dirty}");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BrowserPane oPane;&lt;BR /&gt;oPane = oPanes.AddTreeBrowserPane("Filter", Globals.AddinGUI, oDef);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Diagnostics.Debug.WriteLine($"Document Dirty = {document.Dirty}");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oPane.Transient = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Diagnostics.Debug.WriteLine($"Document Dirty = {document.Dirty}");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lars G.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 09:12:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9186694#M68852</guid>
      <dc:creator>LarsGaarde</dc:creator>
      <dc:date>2019-12-06T09:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why does document.BrowserPanes.AddTreeBrowser make the document dirty?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187139#M68853</link>
      <description>&lt;P&gt;The short answer is, because your working with the 'Document' to create it.&amp;nbsp; Any time you make any modification within a document, it wants to save it afterwards.&amp;nbsp; Creating a Tree Type Browser Pane within the document must qualify as modifying the document enough that it wants to ask you if you want to save the changes.&lt;/P&gt;&lt;P&gt;Is there some reason why a MessageBox written using vbNewLine to make it multi-line or InputListBox will not get the job done?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187139#M68853</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2019-12-06T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does document.BrowserPanes.AddTreeBrowser make the document dirty?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187182#M68854</link>
      <description>&lt;P&gt;It's part of a large add-in where the user will be able to interact with the nodes with contextmenus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What confuses me is that the BrowserPane object has a property called Transient.&lt;/P&gt;&lt;P&gt;As i understand it, that would mean that the object created (the BrowserPane) wouldn't be saved in the file, but would be discarded, when the document is closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to set the Transient flag to True once the BrowserPane has been created, but at that point the document is already dirty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, after looking at it a bit more it turns out that if i do set the Transient flag to true after creating the BrowserPane, then the BrowserPane object will NOT be saved to the file, but again: the file is already dirty, because i created the BrowserPane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a bit of chicken/egg problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars G.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187182#M68854</guid>
      <dc:creator>LarsGaarde</dc:creator>
      <dc:date>2019-12-06T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why does document.BrowserPanes.AddTreeBrowser make the document dirty?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187279#M68855</link>
      <description>&lt;P&gt;OK. That explains some things.&amp;nbsp; But I'm still not seeing a Transient property of a BrowserPane.&lt;/P&gt;&lt;P&gt;See the following link to the 2020 Inventor online Help item for the BrowsrePane Object.&lt;/P&gt;&lt;P&gt;&lt;A title="BrowserPane Object" href="http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-9F6FC721-CCCB-4EA2-92D1-694DC5B12C22" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-9F6FC721-CCCB-4EA2-92D1-694DC5B12C22&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 14:34:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9187279#M68855</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2019-12-06T14:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why does document.BrowserPanes.AddTreeBrowser make the document dirty?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9188164#M68856</link>
      <description>&lt;P&gt;The transient property is not listed in the online Help or the API help files, but it does exist and setting it to true has the effect that I described in my previous post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Inventor 2019 by the way and I haven't checked if this behavior is present in 2020, since 2019 is our primary target right now. But I would assume that it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars G.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 21:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-does-document-browserpanes-addtreebrowser-make-the-document/m-p/9188164#M68856</guid>
      <dc:creator>LarsGaarde</dc:creator>
      <dc:date>2019-12-06T21:30:04Z</dc:date>
    </item>
  </channel>
</rss>

