<?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: Renaming selected Part parameters &amp;amp; set to export from Assembly level in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262790#M35597</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt; that works and great explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I had to change to make it perfect was&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oParameters&lt;/SPAN&gt;(&lt;SPAN&gt;"LENGTH"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;"0"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Should actually be = kZeroDecimalPlacePrecision&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 05:41:10 GMT</pubDate>
    <dc:creator>andrew.tom.reynolds</dc:creator>
    <dc:date>2022-06-28T05:41:10Z</dc:date>
    <item>
      <title>Renaming selected Part parameters &amp; set to export from Assembly level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11259812#M35592</link>
      <description>&lt;P&gt;I'm trying to rename a parameter "d2" from a number of selected parts in an Assembly to "LENGTH" and then set to export with a custom property format so I can use it in a BoM export later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've gleaned as much as i can from other posts and i'm 99% there. I'm just not sure how to dig in to the selected occurrence parameters properly. Below is my current code. I'm using the same selection structure for another rule and it's working fine. It's just the parameters section i'm not getting right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone correct me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'Description of the Rule and if you want to continue
 Result = MessageBox.Show("Do you want to continue?" _
&amp;amp; vbNewLine &amp;amp;"" _
&amp;amp; vbNewLine &amp;amp; "This rule allows you to browse the tree and select multiple items,then press the Esc Key and have an action carried out" _
&amp;amp; vbNewLine &amp;amp; "", "Browse And Select" _
, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2)

If Result = vbNo Then
	MessageBox.Show ("Rule Canceled Exiting", "Title")
ElseIf Result = vbYes Then
	
	Dim oDoc As AssemblyDocument
	oDoc = ThisDoc.Document
	oCompDef = oDoc.ComponentDefinition

	Dim oSet As HighlightSet
	oSet = oDoc.CreateHighlightSet
	'MessageBox.Show ("Rule will Run", "Title")
	'[Pick Assembly Occurrences
	Dim comps As ObjectCollection
	Dim comp As Object

	comps = ThisApplication.TransientObjects.CreateObjectCollection

	While True
		comp = ThisApplication.CommandManager.Pick(
			SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, 
			"Select a component") 

		' If nothing gets selected then we're done	
		If IsNothing(comp) Then Exit While
			comps.Add(comp)
			oSet.AddItem(comp)
	End While
	'Description of the Rule and if you want to continue
	Result = MessageBox.Show("Do you want to process all Selected?", "Process selected files", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2)

	If Result = vbNo Then
	MessageBox.Show ("Rule Cancelled", "iLogic")

	'If there are selected Components we can Do something
	ElseIf Result = vbYes Then
		For Each comp In comps
			'Pick only parts
			If comp.DefinitionDocumentType = kPartDocumentObject Then
				'Get document of each occurrence
				Dim oOccDoc As Document
				oOccDoc = comp.Definition.Document
				
				oOccDoc.Parameter("d2").Name = "LENGTH"
				oOccDoc.Parameter("LENGTH").ExposedAsProperty = True
				oOccDoc.Parameter("LENGTH").CustomPropertyFormat.ShowUnitsString = False
				oOccDoc.Parameter("LENGTH").CustomPropertyFormat.Precision = "0"
				']
			End If
			
		Next
	MessageBox.Show("Files Processed", "iLogic")
	'Clear Highlighting
	oSet.Clear()
	End If
']
End If&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Jun 2022 01:14:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11259812#M35592</guid>
      <dc:creator>andrew.tom.reynolds</dc:creator>
      <dc:date>2022-06-27T01:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming selected Part parameters &amp; set to export from Assembly level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11261061#M35593</link>
      <description>&lt;P&gt;The Parameters object is actually on the PartComponentDefinition, not the PartDocument, so you should just be able to use "comp.Definition" directly if it is the correct type.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11261061#M35593</guid>
      <dc:creator>Zach.Stauffer</dc:creator>
      <dc:date>2022-06-27T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming selected Part parameters &amp; set to export from Assembly level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11261245#M35594</link>
      <description>&lt;P&gt;Another thing it looks like you are using "parameters.item" incorrectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Parameters.&lt;/SPAN&gt;&lt;STRONG&gt;Item&lt;/STRONG&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Index&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;As Variant ) As&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=Parameter" target="_blank" rel="noopener"&gt;Parameter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-9031D871-3BAE-4170-8F69-4E49B23336CD" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-9031D871-3BAE-4170-8F69-4E49B23336CD&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:59:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11261245#M35594</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-06-27T14:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming selected Part parameters &amp; set to export from Assembly level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262196#M35595</link>
      <description>&lt;P&gt;Thanks for the info, but sadly my knowledge is very basic. Can someone please correct what i've done here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;		For Each comp In comps
			'Pick only parts
			If comp.DefinitionDocumentType = kPartDocumentObject Then
				'Get document of each occurrence
				'Dim oOccDoc As Document
				oOccDoc = comp.Definition
				
				oOccDoc.Parameters.Item("d2").Name = "LENGTH"
				oOccDoc.Parameters.Item("LENGTH").ExposedAsProperty = True
				oOccDoc.Parameters.Item("LENGTH").CustomPropertyFormat.ShowUnitsString = False
				oOccDoc.Parameters.Item("LENGTH").CustomPropertyFormat.Precision = "0"
			End If
			
		Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 22:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262196#M35595</guid>
      <dc:creator>andrew.tom.reynolds</dc:creator>
      <dc:date>2022-06-27T22:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming selected Part parameters &amp; set to export from Assembly level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262459#M35596</link>
      <description>&lt;P&gt;So in short you have not accessed the location of where the parameters are reached from. This is shown in the error message. If you look at the &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-CF60F6F3-8074-4719-B8E0-5E482E5AF783" target="_blank" rel="noopener"&gt;API help for a document&lt;/A&gt; you will see no reference to parameters.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_0-1656382484144.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1084847i7E3E16556E9AE6D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_0-1656382484144.png" alt="AAcheson_0-1656382484144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the API sample for the parameters collection you will see that you can access the collection from all of the below objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Accessed From&lt;/P&gt;&lt;P&gt;AssemblyComponentDefinition.Parameters,&amp;nbsp;DrawingDocument.Parameters,&amp;nbsp;FlatPattern.Parameters,&amp;nbsp;PartComponentDefinition.Parameters,&amp;nbsp;SheetMetalComponentDefinition.Parameters,&amp;nbsp;WeldmentComponentDefinition.Parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to this now leaves you with the object you have the occurrence and where you want to get to the parameters collection. If we look at&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-A2F840F9-9072-42A5-BB75-CC1FC4A55230" target="_blank" rel="noopener"&gt;API sample for the occurrence &lt;/A&gt;you will find a definition object which is a generic type.&amp;nbsp; Next you may want to only return/work with part documents so we will use the &lt;FONT size="3"&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-939C6149-60C5-47AC-B04B-5704B1953BA0" target="_blank" rel="noopener"&gt;ComponentOccurrence.DefinitionDocumentType As ObjectTypeEnum&amp;nbsp;&lt;/A&gt;to filter the part documents&amp;nbsp; or alternately you could use&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-099CB782-B14C-4405-8403-8BE092FCA597" target="_blank" rel="noopener"&gt;ComponentDefinition.&lt;STRONG&gt;Type&lt;/STRONG&gt;() As&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-099CB782-B14C-4405-8403-8BE092FCA597" target="_blank" rel="noopener"&gt;DocumentTypeEnum&lt;/A&gt; to filter the definition type.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11464496"&gt;@Zach.Stauffer&lt;/a&gt;&amp;nbsp;refers to this earlier in the thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the working rule.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'Description of the Rule and if you want to continue&lt;/SPAN&gt;
 &lt;SPAN&gt;Result&lt;/SPAN&gt; = &lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Do you want to continue?"&lt;/SPAN&gt; _
&amp;amp; &lt;SPAN&gt;vbNewLine&lt;/SPAN&gt; &amp;amp;&lt;SPAN&gt;""&lt;/SPAN&gt; _
&amp;amp; &lt;SPAN&gt;vbNewLine&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"This rule allows you to browse the tree and select multiple items,then press the Esc Key and have an action carried out"&lt;/SPAN&gt; _
&amp;amp; &lt;SPAN&gt;vbNewLine&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;"Browse And Select"&lt;/SPAN&gt; _
, &lt;SPAN&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN&gt;YesNoCancel&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN&gt;Exclamation&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxDefaultButton&lt;/SPAN&gt;.&lt;SPAN&gt;Button2&lt;/SPAN&gt;)

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt; = &lt;SPAN&gt;vbNo&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt; (&lt;SPAN&gt;"Rule Canceled Exiting"&lt;/SPAN&gt;, &lt;SPAN&gt;"Title"&lt;/SPAN&gt;)
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt; = &lt;SPAN&gt;vbYes&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
	&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
	&lt;SPAN&gt;oCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;HighlightSet&lt;/SPAN&gt;
	&lt;SPAN&gt;oSet&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;CreateHighlightSet&lt;/SPAN&gt;
	&lt;SPAN&gt;'MessageBox.Show ("Rule will Run", "Title")&lt;/SPAN&gt;
	&lt;SPAN&gt;'[Pick Assembly Occurrences&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;comps&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;comp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Object&lt;/SPAN&gt;

	&lt;SPAN&gt;comps&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;

	&lt;SPAN&gt;While&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;comp&lt;/SPAN&gt;  = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(
			&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyLeafOccurrenceFilter&lt;/SPAN&gt;, 
			&lt;SPAN&gt;"Select a component"&lt;/SPAN&gt;) 

		&lt;SPAN&gt;' If nothing gets selected then we're done	&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;IsNothing&lt;/SPAN&gt;(&lt;SPAN&gt;comp&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;While&lt;/SPAN&gt;
			&lt;SPAN&gt;comps&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;comp&lt;/SPAN&gt;)
			&lt;SPAN&gt;oSet&lt;/SPAN&gt;.&lt;SPAN&gt;AddItem&lt;/SPAN&gt;(&lt;SPAN&gt;comp&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;While&lt;/SPAN&gt;
	&lt;SPAN&gt;'Description of the Rule and if you want to continue&lt;/SPAN&gt;
	&lt;SPAN&gt;Result&lt;/SPAN&gt; = &lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Do you want to process all Selected?"&lt;/SPAN&gt;, &lt;SPAN&gt;"Process selected files"&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN&gt;YesNoCancel&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN&gt;Exclamation&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxDefaultButton&lt;/SPAN&gt;.&lt;SPAN&gt;Button2&lt;/SPAN&gt;)

	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt; = &lt;SPAN&gt;vbNo&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt; (&lt;SPAN&gt;"Rule Cancelled"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)

	&lt;SPAN&gt;'If there are selected Components we can Do something&lt;/SPAN&gt;
	&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt; = &lt;SPAN&gt;vbYes&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;comp&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;comps&lt;/SPAN&gt;
			&lt;SPAN&gt;'Work with only parts&lt;/SPAN&gt;
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;comp&lt;/SPAN&gt;.&lt;SPAN&gt;DefinitionDocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
				&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;comp&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;
				&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oParameters&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameters&lt;/SPAN&gt; = &lt;SPAN&gt;oPartDef&lt;/SPAN&gt;.&lt;SPAN&gt;Parameters&lt;/SPAN&gt;
				&lt;SPAN&gt;Try&lt;/SPAN&gt;
				&lt;SPAN&gt;oParameters&lt;/SPAN&gt;(&lt;SPAN&gt;"d2"&lt;/SPAN&gt;).&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"LENGTH"&lt;/SPAN&gt;
				&lt;SPAN&gt;oParameters&lt;/SPAN&gt;(&lt;SPAN&gt;"LENGTH"&lt;/SPAN&gt;).&lt;SPAN&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
				&lt;SPAN&gt;oParameters&lt;/SPAN&gt;(&lt;SPAN&gt;"LENGTH"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
				&lt;SPAN&gt;oParameters&lt;/SPAN&gt;(&lt;SPAN&gt;"LENGTH"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;"0"&lt;/SPAN&gt;
				&lt;SPAN&gt;Catch&lt;/SPAN&gt;
					&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Error Getting Parameter"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
				&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
			&lt;SPAN&gt;Else&lt;/SPAN&gt;
				&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Another document type has being chosen"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
			&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		&lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Files Processed"&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
	&lt;SPAN&gt;'Clear Highlighting&lt;/SPAN&gt;
	&lt;SPAN&gt;oSet&lt;/SPAN&gt;.&lt;SPAN&gt;Clear&lt;/SPAN&gt;()
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;']&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 02:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262459#M35596</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-06-28T02:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming selected Part parameters &amp; set to export from Assembly level</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262790#M35597</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt; that works and great explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I had to change to make it perfect was&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oParameters&lt;/SPAN&gt;(&lt;SPAN&gt;"LENGTH"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;"0"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Should actually be = kZeroDecimalPlacePrecision&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 05:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/renaming-selected-part-parameters-amp-set-to-export-from/m-p/11262790#M35597</guid>
      <dc:creator>andrew.tom.reynolds</dc:creator>
      <dc:date>2022-06-28T05:41:10Z</dc:date>
    </item>
  </channel>
</rss>

