<?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: Modify Custom Property Format on Multiple components - Same Parameter in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642816#M107618</link>
    <description>&lt;P&gt;As far as the code goes on this topic, a combination of the two VBA codes posted earlier did the trick.&amp;nbsp; here is the completed, tested code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub Main()
    Call UpdateCustomProperties
End Sub

Public Sub UpdateCustomProperties()
    ' Get the open top-level assemby.
    Dim asmDoc As AssemblyDocument
    Set asmDoc = ThisApplication.ActiveDocument
    
    ' Get a list of all documents referenced by this assembly.
    ' This property will return everything at all levels.
    Dim refDocs As DocumentsEnumerator
    Set refDocs = asmDoc.AllReferencedDocuments
    
    ' Iterate through the documents.
    Dim doc As Document
    For Each doc In refDocs
        ' Look for part documents.
        If doc.DocumentType = kPartDocumentObject Then
            ' Look for a parameter named "G_L".
            Dim params As Parameters
            Set params = doc.ComponentDefinition.Parameters
            
            On Error Resume Next
            Dim param As Parameter
            Set param = params.Item("G_L")
            If Err.Number = 0 Then
                ' Set the custom property format.
                Dim propFormat As CustomPropertyFormat
                Set propFormat = param.CustomPropertyFormat
                
                propFormat.Precision = CustomPropertyPrecisionEnum.kEighthsFractionalLengthPrecision
                propFormat.Units = "in"
                propFormat.PropertyType = CustomPropertyTypeEnum.kTextPropertyType
            End If
            On Error GoTo 0
        End If
    Next
End Sub&lt;/PRE&gt;
&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88414"&gt;@AlexFielder&lt;/a&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/116141"&gt;@ekinsb&lt;/a&gt;&amp;nbsp; for pointing me in this direction.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 13:42:03 GMT</pubDate>
    <dc:creator>cbenner</dc:creator>
    <dc:date>2019-03-07T13:42:03Z</dc:date>
    <item>
      <title>Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6484212#M107606</link>
      <description>&lt;P&gt;Is there any way that anyone knows of, to go into each part of an assembly (or a selected set) find a particular User Parameter, and set a Custom Property Format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My example: In Frame generator assembly, I would like to change the same Parameter on multiple parts from Fractional to Decimal without having to open each part individually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 14:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6484212#M107606</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2016-08-08T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6484376#M107607</link>
      <description>Yes. Open each part. Access the parameters. Use a try/catch to try and find the named one. If found, use the CustomPropertyFormat property/method, change the specific value to kFractional display or whatever it needs to be.</description>
      <pubDate>Mon, 08 Aug 2016 15:42:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6484376#M107607</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2016-08-08T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6484426#M107608</link>
      <description>&lt;P&gt;Partial sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oCompDef As ComponentDefinition
oCompDef = ThisApplication.ActiveDocument.ComponentDefinition

oUserP=oCompDef.Parameters.UserParameters

Dim oFormat As CustomPropertyFormat

Try
	For Each oParameter In oUserP
		If oParameter.Name=r

			oParameter.ExposedAsProperty=True
			With oParameter.CustomPropertyFormat
	
.Precision=Inventor.CustomPropertyPrecisionEnum.kSixteenthsFractionalLengthPrecision

'			ShowLeadingZeros=False
'			.ShowTrailingZeros=False
			.ShowUnitsString=True
                 End With
			Exit Try
		End If


	Next
Catch
     MsgBox("Error!")
End try&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:59:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6484426#M107608</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2016-08-08T15:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6485429#M107609</link>
      <description>&lt;P&gt;I know this is a little different than what you need but it should get you pointed in the right direction. This inserts a multivalve parameter and also makes a custom property. I hope this helps in some way. &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Imports&lt;/SPAN&gt;  &lt;SPAN&gt;Inventor&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;UnitsTypeEnum&lt;/SPAN&gt;


&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; &lt;SPAN&gt;=&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;oPartCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt;
        &lt;SPAN&gt;oPartCompDef&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
        
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oParams&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameters&lt;/SPAN&gt;
        &lt;SPAN&gt;oParams&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;oPartCompDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Parameters&lt;/SPAN&gt;
                
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oUserParams&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;UserParameters&lt;/SPAN&gt;
        &lt;SPAN&gt;oUserParams&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;oParams&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;       
        
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAwesomeParameter&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;                     
                    &lt;SPAN&gt;Try&lt;/SPAN&gt;
            &lt;SPAN&gt;otester&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oUserParams&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PK_Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
            &lt;SPAN&gt;Catch&lt;/SPAN&gt;
&lt;SPAN&gt;oInsulationType&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;oUserParams&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PK_Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Description Override&lt;/SPAN&gt;&lt;SPAN&gt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;/SPAN&gt;&lt;SPAN&gt;Thread-O-Let&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Tube, Round&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Tube, Square&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;General REV&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Param&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PK_Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ExposedAsProperty&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Param&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PK_Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IsKey&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;

&lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Custom&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PK_Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Param&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PK_Description&lt;/SPAN&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:06:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6485429#M107609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-08T21:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6497399#M107610</link>
      <description>&lt;P&gt;I think this VBA code should do what you want.&amp;nbsp; You'll just need to change the name of the parameter and what it does for the custom property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub UpdateCustomProperties()
    ' Get the open top-level assemby.
    Dim asmDoc As AssemblyDocument
    Set asmDoc = ThisApplication.ActiveDocument
    
    ' Get a list of all documents referenced by this assembly.
    ' This property will return everything at all levels.
    Dim refDocs As DocumentsEnumerator
    Set refDocs = asmDoc.AllReferencedDocuments
    
    ' Iterate through the documents.
    Dim doc As Document
    For Each doc In refDocs
        ' Look for part documents.
        If doc.DocumentType = kPartDocumentObject Then
            ' Look for a parameter named "Height".
            Dim params As Parameters
            Set params = doc.ComponentDefinition.Parameters
            
            On Error Resume Next
            Dim param As Parameter
            Set param = params.Item("Height")
            If Err.Number = 0 Then
                ' Set the custom property format.
                Dim propFormat As CustomPropertyFormat
                Set propFormat = param.CustomPropertyFormat
                
                propFormat.Precision = kFiveDecimalPlacesPrecision
                propFormat.Units = "ft"
                propFormat.PropertyType = kTextPropertyType
            End If
            On Error GoTo 0
        End If
    Next
End Sub
&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Aug 2016 18:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/6497399#M107610</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-08-12T18:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640139#M107611</link>
      <description>&lt;P&gt;Facing the same dilemma again today, with hundreds of parts to change.&amp;nbsp; Thanks for the help so far guys, but none of these have done the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom line is that this is a bug that needs fixing.&amp;nbsp; It's costing hours of labor.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640139#M107611</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2019-03-06T14:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640162#M107612</link>
      <description>&lt;P&gt;Is this still the same issue as per your OP &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/586361"&gt;@cbenner&lt;/a&gt;? Can you share a non-IP-containing example pack &amp;amp; go showing what is or isn't happening?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:38:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640162#M107612</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-06T14:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640182#M107613</link>
      <description>&lt;P&gt;Yes, same issue.&amp;nbsp; It has been brought to Autodesk attention, but the fix seems to be slow in coming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basic description:&lt;/P&gt;
&lt;P&gt;All of my FG family tables are set to use fractional units.&amp;nbsp; You can place from Content Center and see that the units are correct.&amp;nbsp; You can populate a new frame design, with the same correct units.&amp;nbsp; But as soon as you modify a frame member, for whatever purpose, the units spontaneously change to decimal.&amp;nbsp; This leaves my BOM with mixed units.&amp;nbsp; The only fix right now is to open each part and change the "G_L" parameter back to fractional units.&amp;nbsp; Sometimes this means hundreds of parts.&amp;nbsp; The one I'm doing now, I've been working on since Monday.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the link I sent Autodesk last summer showing the bug.&amp;nbsp;&amp;nbsp;&lt;A href="https://u7507473.ct.sendgrid.net/wf/click?upn=5SmYwFIJXHmC5X9wAP0G6mg4oLGBuQENbeDkYXezg3m6vjHxJcC6rUMd8QE2MtqzVXWka9pEG2gSd8NI9-2FgX32WwjRiUUeryeXNqF-2BWnkG1tdBwJETSeD7NC7yUXl0VNDv-2BSUuLed3uJ-2F-2BDeZMrORV8C68qEaCNM3ajJO9n9GFben8Ac8Rkk5-2FLQl9SDZ7neL0C-2FWLY1ZP8xR-2FzFter0yiEA7J5ByoikmVFzm7YzxtliTBY8ktUI4np0UnNC8bWPSmmEVjU1OjeMx6yraFsZLciHXPTy2JW2kiZa-2Fr7G6MGC8b3-2F5ebpqRecB-2BBykAeFm49EmEybjWWvoj4TOeTomdjgh8l04Z-2FzyaQV7ECzgMgVXwdYo24h8DAAMd7-2Fjw2k_06S7D2ay0fz-2F75ZExu14Q4T4mVEaoo5MGkC4fxAuK2Fa-2FINlBmqgW706QV1-2FHcp4s4KF9KqheHkRtTDLjUrBxgrW-2BU6c3LCuoC6dBgrhts3jpiZVROjEuIFl4UJ-2FCXC-2FFruIUcT1hEhW1wgS2i-2FABNAP-2BLV2ZVvno9Y7zeKCwSLuQLasKp8TD7UxYWLPYPHdknTohExGx31oJJ817VrpIr-2BgkF2iPPKBQYA-2FfO-2FjOsc-3D" target="_blank"&gt;https://autode.sk/2Pfo2WL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:47:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640182#M107613</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2019-03-06T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640203#M107614</link>
      <description>&lt;P&gt;I can see why that would be &lt;STRIKE&gt;annoying&lt;/STRIKE&gt;&amp;nbsp;infuriating. I'll bet you've had a bunch of users unaware that the change happens&amp;nbsp; on editing and now you've got 100s if not 1000s of drawings with wonky BOMs right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it only happen with the "Powell" FG library family or with everything? (I don't have Inventor open otherwise I'd test the standard stuff myself)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640203#M107614</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-06T14:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640219#M107615</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88414"&gt;@AlexFielder&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have to test that out.&amp;nbsp; We only use our read/write library because of part numbering.&amp;nbsp; Stand by, and sometime today I will test the behavior with the Read Only libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We usually catch this, at the very latest, when it gets to the weld shop.&amp;nbsp; We use an expression in the BOM to get the welder his cut lengths.&amp;nbsp; So when he sees mixed units he comes to us for clarification.&amp;nbsp; Infuriating is one word for it.....&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:58:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8640219#M107615</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2019-03-06T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642314#M107616</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/586361"&gt;@cbenner&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just had a quick look using the ANSI (Read-only) libraries I have installed here in the UK and in Inventor 2019.3 I'm not seeing a switch from fractional to decimal values when you edit a frame member and choose a different size. Whichever setting (fractional or decimal) is set in the originally selected files seems to stay set regardless.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To ease your pain however, I've modified the VBA&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/116141"&gt;@ekinsb&lt;/a&gt;&amp;nbsp;provided to create two rules:&lt;/P&gt;
&lt;P&gt;"Fractional"&lt;/P&gt;
&lt;PRE&gt;Public Sub Main
	Call UpdateCustomProperties()
End Sub

Public Sub UpdateCustomProperties()
    ' Get the open top-level assemby.
    Dim asmDoc As AssemblyDocument = ThisApplication.ActiveDocument
    
    ' Get a list of all documents referenced by this assembly.
    ' This property will return everything at all levels.
    Dim refDocs As DocumentsEnumerator = asmDoc.AllReferencedDocuments
    
    ' Iterate through the documents.
    Dim doc As Document
    For Each doc In refDocs
        ' Look for part documents.
        If TypeOf(doc) Is PartDocument Then
            ' Look for a parameter named "G_L".
            Dim params As Parameters = doc.ComponentDefinition.Parameters
            
            On Error Resume Next
            Dim param As Parameter = params.Item("G_L")
            If Err.Number = 0 Then
                ' Set the custom property format.
                Dim propFormat As CustomPropertyFormat = param.CustomPropertyFormat
                
                propFormat.Precision = CustomPropertyPrecisionEnum.kEighthsFractionalLengthPrecision
                propFormat.Units = "in"
                propFormat.PropertyType = CustomPropertyTypeEnum.kTextPropertyType
            End If
            On Error GoTo 0
        End If
    Next
End Sub&lt;/PRE&gt;
&lt;P&gt;And "Decimal":&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
	&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;UpdateCustomProperties&lt;/SPAN&gt;()
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;UpdateCustomProperties&lt;/SPAN&gt;()
    &lt;SPAN&gt;' Get the open top-level assemby.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;asmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
    
    &lt;SPAN&gt;' Get a list of all documents referenced by this assembly.&lt;/SPAN&gt;
    &lt;SPAN&gt;' This property will return everything at all levels.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;refDocs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DocumentsEnumerator&lt;/SPAN&gt; = &lt;SPAN&gt;asmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;
    
    &lt;SPAN&gt;' Iterate through the documents.&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;doc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
    &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;doc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;refDocs&lt;/SPAN&gt;
        &lt;SPAN&gt;' Look for part documents.&lt;/SPAN&gt;
        &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TypeOf&lt;/SPAN&gt;(&lt;SPAN&gt;doc&lt;/SPAN&gt;) &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
            &lt;SPAN&gt;' Look for a parameter named "G_L".&lt;/SPAN&gt;
            &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;params&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameters&lt;/SPAN&gt; = &lt;SPAN&gt;doc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Parameters&lt;/SPAN&gt;
            
            &lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
            &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;param&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt; = &lt;SPAN&gt;params&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"G_L"&lt;/SPAN&gt;)
            &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Err&lt;/SPAN&gt;.&lt;SPAN&gt;Number&lt;/SPAN&gt; = 0 &lt;SPAN&gt;Then&lt;/SPAN&gt;
                &lt;SPAN&gt;' Set the custom property format.&lt;/SPAN&gt;
                &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;propFormat&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt; = &lt;SPAN&gt;param&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;
                
                &lt;SPAN&gt;propFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kThreeDecimalPlacesPrecision&lt;/SPAN&gt;
                &lt;SPAN&gt;propFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Units&lt;/SPAN&gt; = &lt;SPAN&gt;"in"&lt;/SPAN&gt;
                &lt;SPAN&gt;propFormat&lt;/SPAN&gt;.&lt;SPAN&gt;PropertyType&lt;/SPAN&gt; = &lt;SPAN&gt;CustomPropertyTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kTextPropertyType&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
            &lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;GoTo&lt;/SPAN&gt; 0
        &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
    &lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I suppose you could push whichever one suits into the parent Assembly or perhaps the drawing template for new works and add a trigger that runs before save? (Or you could always switch to using Metric (mm) and the problem goes away long-term &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:45:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642314#M107616</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-07T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642591#M107617</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88414"&gt;@AlexFielder&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The read only libraries family template is set to use decimals on G_L, right out of the box.&amp;nbsp; There would be no real way to test this without saving the family to a read-write and modifying the family template (which is what I did).&amp;nbsp; Is this the method you used in your testing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way, thank you for the modified code, I will certainly give that a try and if it works.... problem solved!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:18:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642591#M107617</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2019-03-07T12:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642816#M107618</link>
      <description>&lt;P&gt;As far as the code goes on this topic, a combination of the two VBA codes posted earlier did the trick.&amp;nbsp; here is the completed, tested code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub Main()
    Call UpdateCustomProperties
End Sub

Public Sub UpdateCustomProperties()
    ' Get the open top-level assemby.
    Dim asmDoc As AssemblyDocument
    Set asmDoc = ThisApplication.ActiveDocument
    
    ' Get a list of all documents referenced by this assembly.
    ' This property will return everything at all levels.
    Dim refDocs As DocumentsEnumerator
    Set refDocs = asmDoc.AllReferencedDocuments
    
    ' Iterate through the documents.
    Dim doc As Document
    For Each doc In refDocs
        ' Look for part documents.
        If doc.DocumentType = kPartDocumentObject Then
            ' Look for a parameter named "G_L".
            Dim params As Parameters
            Set params = doc.ComponentDefinition.Parameters
            
            On Error Resume Next
            Dim param As Parameter
            Set param = params.Item("G_L")
            If Err.Number = 0 Then
                ' Set the custom property format.
                Dim propFormat As CustomPropertyFormat
                Set propFormat = param.CustomPropertyFormat
                
                propFormat.Precision = CustomPropertyPrecisionEnum.kEighthsFractionalLengthPrecision
                propFormat.Units = "in"
                propFormat.PropertyType = CustomPropertyTypeEnum.kTextPropertyType
            End If
            On Error GoTo 0
        End If
    Next
End Sub&lt;/PRE&gt;
&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88414"&gt;@AlexFielder&lt;/a&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/116141"&gt;@ekinsb&lt;/a&gt;&amp;nbsp; for pointing me in this direction.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:42:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642816#M107618</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2019-03-07T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642887#M107619</link>
      <description>&lt;P&gt;hello, if you change this propriety of frame before creation of frame part, you will have the format you want.&lt;/P&gt;
&lt;P&gt;I hope that can help you&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/611102i284E6D7CB636EBDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:06:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/8642887#M107619</guid>
      <dc:creator>sebastien.forman</dc:creator>
      <dc:date>2019-03-07T14:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/10108354#M107620</link>
      <description>&lt;P&gt;Just a note for anyone using this on later versions of VB.net&amp;nbsp; Let and Set are no longer recognized in this code. Simple fix, just delete these words and it works great. Thanks to all who have shared, saved a bunch of clicks and time.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 14:34:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/10108354#M107620</guid>
      <dc:creator>AtNicksLLC</dc:creator>
      <dc:date>2021-02-24T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Custom Property Format on Multiple components - Same Parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/10238137#M107621</link>
      <description>&lt;P&gt;Changed the Macro a little bit.&lt;/P&gt;&lt;P&gt;Instead of inches it is now in mm and decimals is set to zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Public Sub Main()&lt;BR /&gt;Call UpdateCustomProperties&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Public Sub UpdateCustomProperties()&lt;BR /&gt;' Get the open top-level assemby.&lt;BR /&gt;Dim asmDoc As AssemblyDocument&lt;BR /&gt;Set asmDoc = ThisApplication.ActiveDocument&lt;BR /&gt;&lt;BR /&gt;' Get a list of all documents referenced by this assembly.&lt;BR /&gt;' This property will return everything at all levels.&lt;BR /&gt;Dim refDocs As DocumentsEnumerator&lt;BR /&gt;Set refDocs = asmDoc.AllReferencedDocuments&lt;BR /&gt;&lt;BR /&gt;' Iterate through the documents.&lt;BR /&gt;Dim doc As Document&lt;BR /&gt;For Each doc In refDocs&lt;BR /&gt;' Look for part documents.&lt;BR /&gt;If doc.DocumentType = kPartDocumentObject Then&lt;BR /&gt;' Look for a parameter named "G_L".&lt;BR /&gt;Dim params As Parameters&lt;BR /&gt;Set params = doc.ComponentDefinition.Parameters&lt;BR /&gt;&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Dim param As Parameter&lt;BR /&gt;Set param = params.Item("G_L")&lt;BR /&gt;If Err.Number = 0 Then&lt;BR /&gt;' Set the custom property format.&lt;BR /&gt;Dim propFormat As CustomPropertyFormat&lt;BR /&gt;Set propFormat = param.CustomPropertyFormat&lt;BR /&gt;&lt;BR /&gt;propFormat.Precision = CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision&lt;BR /&gt;propFormat.Units = "mm"&lt;BR /&gt;propFormat.PropertyType = CustomPropertyTypeEnum.kTextPropertyType&lt;BR /&gt;End If&lt;BR /&gt;On Error GoTo 0&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/modify-custom-property-format-on-multiple-components-same/m-p/10238137#M107621</guid>
      <dc:creator>g_v_rooy</dc:creator>
      <dc:date>2021-04-14T16:12:16Z</dc:date>
    </item>
  </channel>
</rss>

