<?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: How to create a new file name adding suffix in a new folder? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12564076#M13426</link>
    <description>&lt;P&gt;You could use ilogic copy design, found in the ribbon zero documents!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 09:21:43 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2024-02-16T09:21:43Z</dc:date>
    <item>
      <title>How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12564046#M13425</link>
      <description>&lt;P&gt;Hello ;&lt;/P&gt;&lt;P&gt;I have a ilogic parametric assembly here and I want to add a prefix to all items ,including sub assemblies ,parts in product tree and save as to a new folder(like pack and go )&lt;/P&gt;&lt;P&gt;For example ; firts item's name "Oil Entry DOF Tube" , after apply my desired rules I want to add project name as prefix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will put a button and write "Enter project name "&lt;/P&gt;&lt;P&gt;Project name : PA366&lt;/P&gt;&lt;P&gt;Then it will become "PA366_Oil Entry DOF Tube"&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="File_name.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1326828i98428DFCA84F9191/image-size/large?v=v2&amp;amp;px=999" role="button" title="File_name.PNG" alt="File_name.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 09:04:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12564046#M13425</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-16T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12564076#M13426</link>
      <description>&lt;P&gt;You could use ilogic copy design, found in the ribbon zero documents!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 09:21:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12564076#M13426</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-02-16T09:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12568692#M13427</link>
      <description>&lt;P&gt;ıs there another solution to be able to add to the form with rule?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I have some form paremeters , I also want to include project number too , then want to change all item's file name with this prefix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1327674iFC4894A00A455466/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 09:03:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12568692#M13427</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-19T09:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12573687#M13428</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;I have some parameters from the parts in the assembly , when I use &lt;SPAN&gt;ilogic copy design , in the copied assembly the parameter names stay as previous one , so the rule gives error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can see below screenshoot, in model tree it is with prefix name which created with ilogic design copy but in the rule they remain as previous one.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you help me I would be grateful&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 772px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328706i66CBA31B6BE975AC/image-dimensions/772x701?v=v2" width="772" height="701" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 13:48:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12573687#M13428</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-21T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12573889#M13429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7106668"&gt;@ikilic1461&lt;/a&gt;.&amp;nbsp; Besides what I mentioned on your other current forum topic, below is another possible workaround way to 'fix' the rule afterwards, if needed, but this one can be pretty tricky to implement correctly.&amp;nbsp; This would be something you would need to run after the design copy process has completed, to help fix the contents of the iLogic rule to reflect the new component names.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not 'perfect', but may work OK if working from a Template type situation (copying a template assembly files to new files).&amp;nbsp; This is because it is expecting the names of the components in the rule to not already have a 'prefix' in their names.&amp;nbsp; If they do already have a prefix in their names, such as when copying one 'copied' assembly to make another, then the 'find &amp;amp; replace' task will not be working with the correct 'find' text.&amp;nbsp; If that is the case, then you may need to redefine how the 'find' text is dictated by replacing old/previous prefix with new/current prefix, instead of just removing prefix.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main
	Dim oADoc As AssemblyDocument = TryCast(ThisDoc.Document, Inventor.AssemblyDocument)
	If oADoc Is Nothing Then Logger.Debug(iLogicVb.RuleName &amp;amp; " exited (Wrong DocumentType)") : Return
	Dim oOccs As ComponentOccurrences = oADoc.ComponentDefinition.Occurrences
	If oOccs.Count = 0 Then Return
	Dim sPrefix As String = InputBox("Enter Prefix Text.", "Prefix", "")
	If sPrefix = "" Then Return
	'&amp;lt;&amp;lt;&amp;lt; a Dictionary to hold each 'old/previous' and 'new/current' component BrowserNode name, in pairs, in a list &amp;gt;&amp;gt;&amp;gt;
	'&amp;lt;&amp;lt;&amp;lt; each 'entry' has a 'Key' and a 'Value' (Key = old or previous name, Value = new or current name) &amp;gt;&amp;gt;&amp;gt;
	Dim oDict As New Dictionary(Of String, String)
	'&amp;lt;&amp;lt;&amp;lt; a transaction bundles multiple actions into one item in the UNDO list &amp;gt;&amp;gt;&amp;gt;
	Dim oTrans As Inventor.Transaction
	oTrans = ThisApplication.TransactionManager.StartTransaction(oADoc, "Update iLogic Rule Component Names")
	For Each oOcc As ComponentOccurrence In oOccs
		'&amp;lt;&amp;lt;&amp;lt; get name of component BrowserNode without the 'Prefix' &amp;gt;&amp;gt;&amp;gt;
		Dim sOccNameWithoutPrefix As String = oOcc.Name.Replace(sPrefix, "")
		'&amp;lt;&amp;lt;&amp;lt; if sOccNameWithoutPrefix is not already in dictionary, then add it, along with current name &amp;gt;&amp;gt;&amp;gt;
		If Not oDict.ContainsKey(sOccNameWithoutPrefix) Then
			oDict.Add(sOccNameWithoutPrefix, oOcc.Name)
		End If
	Next 'oOcc
	If oDict.Count = 0 Then : oTrans.Abort : Return : End If
	'&amp;lt;&amp;lt;&amp;lt; run the custom Sub routine below with following line of code &amp;gt;&amp;gt;&amp;gt;
	'&amp;lt;&amp;lt;&amp;lt; IMPORTANT:  EDIT RULE NAME IN NEXT LINE &amp;gt;&amp;gt;&amp;gt;
	FindReplaceTextInRule(oADoc, "RuleName", oDict)
	oTrans.End
End Sub

Sub FindReplaceTextInRule(oDoc As Inventor.Document, sRuleName As String, _
oOldAndNewPairs As Dictionary(Of String, String))
	If oDoc Is Nothing OrElse oDoc.IsModifiable = False Then Return
	If sRuleName = "" Then Return
	If oOldAndNewPairs Is Nothing OrElse oOldAndNewPairs.Count = 0 Then Return
	Dim oRule As iLogicRule = iLogicVb.Automation.GetRule(oDoc, sRuleName)
	If oRule Is Nothing Then
		Logger.Debug("iLogic Rule named '" &amp;amp; sRuleName &amp;amp; "' not found!")
		Return
	End If
	Dim sRuleText As String = oRule.Text
	If sRuleText = "" Then Return
	For Each oEntry As KeyValuePair(Of String, String) In oOldAndNewPairs
		Try
			sRuleText = sRuleText.Replace(oEntry.Key, oEntry.Value)
		Catch
			Logger.Error("Error editing iLogic Rule named " &amp;amp; sRuleName &amp;amp; vbCrLf &amp;amp; _
			"while replacing:  " &amp;amp; oEntry.Key &amp;amp; vbCrLf &amp;amp; _
			"with:  " &amp;amp; oEntry.Value)
		End Try
	Next 'oEntry
	oRule.Text = sRuleText
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;I also have an alternative custom Sub routine with the same name, but which requests a single 'text to find' and 'text to replace the with', instead of a Dictionary(Of String, String), for when you only need to replace one term in a rule.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub FindReplaceTextInRule(oDoc As Inventor.Document, sRuleName As String, _
sTextToFind As String, sReplacementText As String)
	If oDoc Is Nothing OrElse oDoc.IsModifiable = False Then Return
	If sRuleName = "" OrElse sTextToFind = "" Then Return
	Dim oRule As iLogicRule = iLogicVb.Automation.GetRule(oDoc, sRuleName)
	If oRule Is Nothing Then
		Logger.Debug("iLogic Rule named '" &amp;amp; sRuleName &amp;amp; "' not found!")
		Return
	End If
	Dim sRuleText As String = oRule.Text
	If sRuleText = "" Then Return
	Try
		sRuleText = sRuleText.Replace(sTextToFind, sReplacementText)
	Catch
		Logger.Error("Error editing iLogic Rule named " &amp;amp; sRuleName &amp;amp; vbCrLf &amp;amp; _
		"while trying to replace:  " &amp;amp; sTextToFind &amp;amp; vbCrLf &amp;amp; _
		"with the following:  " &amp;amp; sReplacementText)
	End Try
	oRule.Text = sRuleText
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:06:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12573889#M13429</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-02-21T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12574550#M13430</link>
      <description>&lt;P&gt;You should use a static occurrence name which stays always the same...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 20:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12574550#M13430</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-02-21T20:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12575557#M13431</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;I am so grateful for your endless support, But , I see I couldn't solve my problem yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also attached&amp;nbsp; my study here. If you have time you may integrate your statements .&lt;/P&gt;&lt;P&gt;Many thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 09:01:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12575557#M13431</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-22T09:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12575559#M13432</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;My study attached in the previous message.&lt;/P&gt;&lt;P&gt;I couldn't understand how to do it . If you have time and solve this issue I would be grateful.&lt;/P&gt;&lt;P&gt;Many thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 09:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12575559#M13432</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-22T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12575989#M13433</link>
      <description>I will support you. Will come back to you, ok?</description>
      <pubDate>Thu, 22 Feb 2024 13:08:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12575989#M13433</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-02-22T13:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12576006#M13434</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;Thank you , I will be waiting for it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 13:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12576006#M13434</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-22T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12577145#M13435</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First create a&amp;nbsp; Custom Property in each part in the assembly Called "MyDisplayName" and give this the values as per picture.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1708635924368.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1329414i14598003B41E1F53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1708635924368.png" alt="bradeneuropeArthur_0-1708635924368.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Than use this i-locig code to set each time you copy the value back to the default (Displayname)&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim a As AssemblyDocument = ThisAssembly.Document
Dim ac As AssemblyComponentDefinition = a.ComponentDefinition
Dim ao As ComponentOccurrence 

For Each ao In ac.Occurrences
	Dim d As Document = ao.Definition.Document
	Dim dps As PropertySet = d.PropertySets.Item(4)
	Dim dp As [Property] = dps.Item("MyDisplayName")
	ao.Name = dp.Value
	Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the problem from the rename is away since the displayname is always static or overwitable with the "MyDisplayName" value of each occurence in this assembly.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 21:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12577145#M13435</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-02-22T21:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12577888#M13436</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;I created a custom property in 7 parts which I got parameters in my assembly&amp;nbsp; as you mentioned "MyDisplayName".&lt;/P&gt;&lt;P&gt;But at the end I got this error . Then form didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching model here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 583px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1329553iC44E8F709D944DAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MyDisplayName =&amp;nbsp;Oil Entry DOF Tube.ipt:1&lt;/P&gt;&lt;P&gt;MyDisplayName = Interval DOF Tube.ipt:1&lt;/P&gt;&lt;P&gt;MyDisplayName = End DOF Tube.ipt:1&lt;/P&gt;&lt;P&gt;MyDisplayName = DOF Oil Entry End Flange.ipt:1&lt;/P&gt;&lt;P&gt;MyDisplayName = End Stop Board Packing Block.ipt:1&lt;/P&gt;&lt;P&gt;MyDisplayName = DOF Tube Support Board.ipt:1&lt;/P&gt;&lt;P&gt;MyDisplayName = Petal Washer Seal.ipt:1&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="Capture.PNG" style="width: 636px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1329551i0F7C7C72C7ACE076/image-dimensions/636x385?v=v2" width="636" height="385" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 08:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12577888#M13436</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-23T08:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12586520#M13437</link>
      <description>&lt;P&gt;I have got it working for you.&lt;/P&gt;
&lt;P&gt;What you forgot is to add "MyDisplayName" to each compontent even it is an empty string.&lt;/P&gt;
&lt;P&gt;Also changed this in the code:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;For Each ao In ac.Occurrences
	Dim d As Document = ao.Definition.Document
	Dim dps As PropertySet = d.PropertySets.Item(4)
	Try
		Dim dp As [Property] = dps.Item("MyDisplayName")
	ao.Name = dp.Value
		Catch
			
		End Try
	
	Next&lt;/LI-CODE&gt;
&lt;P&gt;See the movie for explanation too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12586520#M13437</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-02-27T21:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new file name adding suffix in a new folder?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12590088#M13438</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;Even&amp;nbsp; if I applied to the all items I got en error again ;&lt;/P&gt;&lt;P&gt;There is something wrong or missing.&lt;/P&gt;&lt;P&gt;If possible , can you share your modifed file?&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="Capture.PNG" style="width: 614px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331727iB935C12BBA386DB1/image-dimensions/614x334?v=v2" width="614" height="334" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 08:16:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-create-a-new-file-name-adding-suffix-in-a-new-folder/m-p/12590088#M13438</guid>
      <dc:creator>ikilic1461</dc:creator>
      <dc:date>2024-02-29T08:16:07Z</dc:date>
    </item>
  </channel>
</rss>

