<?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: Displaying Part Description in Feature Tree in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350773#M323588</link>
    <description>&lt;P&gt;Like this&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;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/242718i934CC8144B29171A/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="todd.JPG" title="todd.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes ...but not out of the box ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also check out&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Resetting-browser-name-to-file-name.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Resetting-browser-name-to-file-name.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 15:59:38 GMT</pubDate>
    <dc:creator>mdavis22569</dc:creator>
    <dc:date>2016-05-26T15:59:38Z</dc:date>
    <item>
      <title>Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350751#M323587</link>
      <description>&lt;P&gt;Is there a way to display the part description next to the file name in the feature tree?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 15:47:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350751#M323587</guid>
      <dc:creator>ToddPig</dc:creator>
      <dc:date>2016-05-26T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350773#M323588</link>
      <description>&lt;P&gt;Like this&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;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/242718i934CC8144B29171A/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="todd.JPG" title="todd.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes ...but not out of the box ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also check out&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Resetting-browser-name-to-file-name.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Resetting-browser-name-to-file-name.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 15:59:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350773#M323588</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2016-05-26T15:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350849#M323589</link>
      <description>&lt;P&gt;Set this ilogic rule to trigger "on save" or whatever other trigger works for you..&lt;/P&gt;
&lt;PRE&gt;'create reference to part
openDoc = ThisApplication.ActiveDocument
 
'format display name
openDoc.DisplayName = iProperties.Value("Project", "Part Number") &amp;amp; " (" &amp;amp; iProperties.Value("Project", "Description") &amp;amp; ")"
openDoc.Rebuild
 
'update
iLogicVb.UpdateWhenDone = True&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/242722iD54C25D486F9C25B/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="description.PNG" title="description.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350849#M323589</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2016-05-26T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350872#M323590</link>
      <description>&lt;P&gt;we do it via iproperties too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/242726i98A2AD8A41188844/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/6350872#M323590</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2016-05-26T16:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11626112#M323591</link>
      <description>&lt;P&gt;I've tried this code but it keeps failing on openDoc.Rebuild, and gives the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Error on line 6 in rule: DescInModelTree, in document: 11000012.iam&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I comment out that line, the description is shown in parentheses after the parent part number, but none of the components or subassemblies within the parent, they still only show the part number.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More details in the "more info" tab:&lt;/P&gt;&lt;P&gt;System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;BR /&gt;at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)&lt;BR /&gt;at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)&lt;BR /&gt;at ThisRule.Main() in rule: DescInModelTree, in document 11000012.iam:line 6&lt;BR /&gt;at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;BR /&gt;at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 23:40:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11626112#M323591</guid>
      <dc:creator>cmyersSNP6E</dc:creator>
      <dc:date>2022-12-16T23:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11655286#M323592</link>
      <description>&lt;P&gt;Hi! The original rule only works for an ipt file, not an iam file. To extend it, change "Rebuild" to "Rebuild2" and it will work for iot and iam files.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 21:10:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11655286#M323592</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2023-01-03T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11659680#M323593</link>
      <description>&lt;P&gt;I am experimenting with this rule using Inventor 2022.&amp;nbsp; I've found an issue that I'd like to better understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've modified the sample code with the Rebild2 command and it works well if I make a change to the description property in each document.&amp;nbsp; I've set the rule to run on both "iProperty Changes" and "Before Save" in the Event Trigger window.&amp;nbsp; Both work ok at the individual document level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if I open an assembly that has sub-components with this iLogic code, and edit their descriptions in the BOM Editor, I can't get the display names in the assembly to update.&amp;nbsp; In fact, I find that the parent assembly display name updates each time I change a sub-component description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a different Event Trigger I should use, or does the code need to be modified so that changes in the BOM editor are pushed to the individual sub-components and the display name of each component is updated in the parent assembly when the BOM Editor is closed/assembly saved?&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, 05 Jan 2023 16:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11659680#M323593</guid>
      <dc:creator>swalton</dc:creator>
      <dc:date>2023-01-05T16:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11660894#M323594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/113378"&gt;@swalton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is happening here is the documents you want the rule to run on are not being targeted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With This External Rule ran before save event trigger the document object &amp;nbsp;is the top most document indicated by ActiveDocument. So the Parent Assembly. See Picture(1)&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;'create reference to part
Dim openDoc As Document = ThisApplication.ActiveDocument'ThisDoc.Document
 
'format display name
openDoc.DisplayName = iProperties.Value("Project", "Part Number") &amp;amp; " (" &amp;amp; iProperties.Value("Project", "Description") &amp;amp; ")"&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_0-1672982695472.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1159379iD53E53BB91EE7903/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_0-1672982695472.png" alt="AAcheson_0-1672982695472.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this External Rule the document ran before save event trigger the object is driven by ThisDoc.Document which works to update the iproperties of any document the event trigger is targeting. So the rule runs on save on any document that has been dirtied. See&amp;nbsp; Picture(2). The document can be dirtied by adjusting the iProperty in the BOM editor or deleting the occurrence Name.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim openDoc As Document = ThisDoc.Document
 
'format display name
openDoc.DisplayName = iProperties.Value("Project", "Part Number") &amp;amp; " (" &amp;amp; iProperties.Value("Project", "Description") &amp;amp; ")"&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_1-1672986595485.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1159387i14D87FE238E21A79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_1-1672986595485.png" alt="AAcheson_1-1672986595485.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Assembly7 Document Dirtied&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_2-1672986659166.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1159388i411B6F9C8DEF1FC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_2-1672986659166.png" alt="AAcheson_2-1672986659166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my testing I couldn't get any update snippets to provide any meaningful contribution so those have been omitted to avoid unnecessary updates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if Method 2&amp;nbsp; is robust enough for your use. If not the only other solution I can think of is an external rule run manually to loop through the reference documents Of the Parent Assembly and force a change to the display name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim Asm As AssemblyDocument = ThisDoc.Document
Dim Trans As Transaction = ThisApplication.TransactionManager.StartTransaction(Asm, "Change Display Name In all files") 'Make this a single transaction

For Each Doc As Document In Asm.AllReferencedDocuments 'Traverse all referenced documents 
	If Doc.IsModifiable = True Then
		Try
			Dim PartNo As String = Doc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value  
			Dim Description As String = Doc.PropertySets.Item("Design Tracking Properties").Item("Description").Value  
			
			'Format display name.
			Doc.DisplayName = PartNo &amp;amp; " (" &amp;amp; Description &amp;amp; ")"
		Catch
		End Try
	End If
Next 
Trans.End 'End the transaction&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 06:55:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11660894#M323594</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-01-06T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Part Description in Feature Tree</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11661639#M323595</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the comments and the code snippet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Preliminary testing looks good.&amp;nbsp; Now to try editing iprops in Vault and Vault Data Standard...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:45:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/displaying-part-description-in-feature-tree/m-p/11661639#M323595</guid>
      <dc:creator>swalton</dc:creator>
      <dc:date>2023-01-06T14:45:23Z</dc:date>
    </item>
  </channel>
</rss>

