<?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 are it saying that  it is not Overriden ? when browsernote in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463573#M32111</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5708980"&gt;@Darkforce_the_ilogic_guy&lt;/a&gt;.&amp;nbsp; The DisplayName is obviously a Read/Write property, but it is also not entirely stable in my opinion, which is why I generally choose not to rely on its use when writing iLogic code that I need to be able to rely on.&amp;nbsp; It can show different results for different people.&amp;nbsp; For instance, sometimes it will include the file's extension, and other times it will not.&amp;nbsp; It seems to me like some time in the past, I saw a setting somewhere that controls what information it will include, but I can't find any setting like that anymore.&amp;nbsp; I can reproduce the behavior you are seeing, because it does not believe that the document's DisplayName has been overridden, so it does not run your code within that If statement, which would have fixed the name.&amp;nbsp; The main question I have now is, how/where did it get that current name that it is showing, if it is not the name of the file, and why did setting that name not toggle the document's DisplayNameOverridden to True?&amp;nbsp; If you need to make sure your DisplayName always matches the file's name, you could simply bypass using that DisplayNameOverridden property, and check whether it matches the file's name or not, and if not, set it to an empty string or the file's name directly.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 14:24:25 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2022-10-05T14:24:25Z</dc:date>
    <item>
      <title>why are it saying that  it is not Overriden ? when browsernote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463274#M32110</link>
      <description>&lt;P&gt;why does this not work. I have a part that browser notes is not the same as filename on a part ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i remove the if statment . if will fix it ... but I do not want it to run is there is no change..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I delete et manuely ..It say i have rename the Root component. is there a better way to only delete the Root component name&amp;nbsp; /display name&amp;nbsp; text when it have been&amp;nbsp; change ? I dont want it to run on all&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bt_1-1664973008157.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1123778iAF8AA3ED68691078/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bt_1-1664973008157.png" alt="bt_1-1664973008157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bt_0-1664972947688.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1123777iC908DB8EC540AEF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bt_0-1664972947688.png" alt="bt_0-1664972947688.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;doc = ThisDoc.Document

If doc.DisplayNameOverridden = True  Then

	doc.DisplayName=""
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 12:47:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463274#M32110</guid>
      <dc:creator>Darkforce_the_ilogic_guy</dc:creator>
      <dc:date>2022-10-05T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: why are it saying that  it is not Overriden ? when browsernote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463573#M32111</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5708980"&gt;@Darkforce_the_ilogic_guy&lt;/a&gt;.&amp;nbsp; The DisplayName is obviously a Read/Write property, but it is also not entirely stable in my opinion, which is why I generally choose not to rely on its use when writing iLogic code that I need to be able to rely on.&amp;nbsp; It can show different results for different people.&amp;nbsp; For instance, sometimes it will include the file's extension, and other times it will not.&amp;nbsp; It seems to me like some time in the past, I saw a setting somewhere that controls what information it will include, but I can't find any setting like that anymore.&amp;nbsp; I can reproduce the behavior you are seeing, because it does not believe that the document's DisplayName has been overridden, so it does not run your code within that If statement, which would have fixed the name.&amp;nbsp; The main question I have now is, how/where did it get that current name that it is showing, if it is not the name of the file, and why did setting that name not toggle the document's DisplayNameOverridden to True?&amp;nbsp; If you need to make sure your DisplayName always matches the file's name, you could simply bypass using that DisplayNameOverridden property, and check whether it matches the file's name or not, and if not, set it to an empty string or the file's name directly.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 14:24:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463573#M32111</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-10-05T14:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: why are it saying that  it is not Overriden ? when browsernote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463596#M32112</link>
      <description>&lt;P&gt;Here is another little iLogic rule you can use for exploring this issue.&amp;nbsp; It accesses the BrowserPane, and its TopNode directly, then shows you its FullPath &amp;amp; Label.&amp;nbsp; After some messing around with your file, I now have it to a place where it is showing the original odd name at the top of the model browser, but another rule that simply shows the DisplayName in a MsgBox, shows the correct file name, with extension, and that property does not believe that it has been overridden at this point either.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oDoc As PartDocument = ThisDoc.Document
'get Model pane using its InternalName
Dim oPane As BrowserPane = oDoc.BrowserPanes.Item("PmDefault")
Dim oTopNode As BrowserNode = oPane.TopNode
MsgBox("oTopNode.FullPath = " &amp;amp; oTopNode.FullPath, , "")
MsgBox("oTopNode.BrowserNodeDefinition.Label = " &amp;amp; oTopNode.BrowserNodeDefinition.Label,,"")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Oct 2022 14:32:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11463596#M32112</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-10-05T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: why are it saying that  it is not Overriden ? when browsernote</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11465460#M32113</link>
      <description>&lt;P&gt;I user what I leard form your code to create this code that seens to work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Try

doc = ThisDoc.Document
Dim oPane As BrowserPane = doc.BrowserPanes.Item("PmDefault")
Dim oTopNode As BrowserNode = oPane.TopNode


If doc.DisplayNameOverridden = True  Then
doc.DisplayName.CompareTo.GetTypeCode
	doc.DisplayName = ""
	
Else
	
	If oTopNode.BrowserNodeDefinition.Label &amp;lt;&amp;gt; doc.DisplayName Then
	doc.DisplayName = ""	
	End If 
	
End If 

Catch
Logger.Info("RenameBrowsernoteALL ilogic code fail for unknow reason", filename)
	
End Try&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Oct 2022 09:47:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/why-are-it-saying-that-it-is-not-overriden-when-browsernote/m-p/11465460#M32113</guid>
      <dc:creator>Darkforce_the_ilogic_guy</dc:creator>
      <dc:date>2022-10-06T09:47:09Z</dc:date>
    </item>
  </channel>
</rss>

