<?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: Add new custom property to existing models in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173542#M115128</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1015119"&gt;@sbromley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are all the files in one folder or are you opening them on a case by case basis? You should be able to run a rule as above on all the files using a batch tool once you know what they are and where they are. There is a great batch tool here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/any-way-to-automatically-update-all-related-drawings/td-p/6467490" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-forum/any-way-to-automatically-update-all-related-drawings/td-p/6467490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor/learn-explore/caas/screencast/Main/Details/4ab05506-6db8-4065-8f00-be7f57632df0.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor/learn-explore/caas/screencast/Main/Details/4ab05506-6db8-4065-8f00-be7f57632df0.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does take a bit of testing when integrating these rules but it works really well. I will give it a go with&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4047630"&gt;@gcoombridge&lt;/a&gt;&amp;nbsp;code and post it up when working. You will be sipping tea/coffee in the break room while the computer is churning true the files in know time.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Mar 2021 07:38:15 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2021-03-21T07:38:15Z</dc:date>
    <item>
      <title>Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173188#M115124</link>
      <description>&lt;P&gt;I’ve had the need to create a custom property for all new and existing models.&amp;nbsp;&lt;BR /&gt;The new property has been added to the part &amp;amp; assembly templates.&lt;/P&gt;&lt;P&gt;Is there an easy way to get this new iproperty into my existing models? There’s about 250 model model files that need updating. I know I’ll have to open each file but I was hoping not to have to type in the new iproperty each time.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 01:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173188#M115124</guid>
      <dc:creator>sbromley</dc:creator>
      <dc:date>2021-03-21T01:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173320#M115125</link>
      <description>&lt;P&gt;You need some ilogic for this. The rule below will ask you for a custom iprop name and a value. It will then create it in all sub parts/assemblies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to alter the values individually you are best to add it to the Bill of Materials dialogue box and change them in one place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sub Main
    
	Dim oAsmDoc As AssemblyDocument 
    oAsmDoc = ThisApplication.ActiveDocument 
	
	Dim oNewiPropName As String
	oNewiPropName = InputBox("Enter new custom iProp name", "iLogic", "")
	Dim oNewiPropValue As String
	oNewiPropValue = InputBox("Enter new custom iProp default value", "iLogic", "")
	
	If oNewiPropName &amp;lt;&amp;gt; "" Then
    	SubName(oAsmDoc.ComponentDefinition.Occurrences, 1, oNewiPropName,oNewiPropValue) 
	End If
End Sub 

Private Sub SubName(Occurrences As ComponentOccurrences, Level As Integer, oNewiPropName As String, oNewiPropValue As String) 

    Dim oOcc As ComponentOccurrence 
    For Each oOcc In Occurrences 
		Dim oDoc As Document = oOcc.Definition.Document
		Dim customPropertySet As PropertySet
		customPropertySet = oDoc.PropertySets.Item("Inventor User Defined Properties")
		
        Try
				customPropertySet.Add(oNewiPropValue, oNewiPropName)
        Catch
                'Do Nothing
        End Try

        If oOcc.DefinitionDocumentType = kAssemblyDocumentObject Then 
            SubName(oOcc.SubOccurrences, Level + 1, oNewiPropName,oNewiPropValue) 
        End If 
    Next 
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 03:48:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173320#M115125</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2021-03-21T03:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173473#M115126</link>
      <description>&lt;P&gt;You can just create the custom iprop in the BOM also... See screenshot. It will only populate if it gets assigned a value.&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="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/896096i1AD3703FDFA39BF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 06:35:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173473#M115126</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2021-03-21T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173536#M115127</link>
      <description>&lt;P&gt;Adding this to your external rules, will give you access to the rule from all existing documents, just replace my custom iproperties by yours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;iProperties.Value("Custom", "PTN_ARTNR") = ""
iProperties.Value("Custom", "PTN_CLIENT") = ""
iProperties.Value("Custom", "PTN_CLIENT_DRAWING") = ""
iProperties.Value("Custom", "PTN_CLIENT_TAG") = ""
iProperties.Value("Custom", "PTN_CODE") = ""
iProperties.Value("Custom", "PTN_COMMENTS") = ""
iProperties.Value("Custom", "PTN_DESCRIPTION_EN") = ""
iProperties.Value("Custom", "PTN_DESCRIPTION_NL") = ""
iProperties.Value("Custom", "PTN_DESCRIPTION_FR") = ""
iProperties.Value("Custom", "PTN_DESIGNER") = ""
iProperties.Value("Custom", "PTN_DRAWING") = ""
iProperties.Value("Custom", "PTN_LOCATION") = ""
iProperties.Value("Custom", "PTN_MANAGER") = ""
iProperties.Value("Custom", "PTN_MATERIAL") = ""
iProperties.Value("Custom", "PTN_PN") = ""
iProperties.Value("Custom", "PTN_PROJECTNR") = ""
iProperties.Value("Custom", "PTN_REVISION") = ""
iProperties.Value("Custom", "PTN_SIZE") = ""
iProperties.Value("Custom", "PTN_STATUS") = ""
iProperties.Value("Custom", "PTN_SUPPLIER") = ""
iProperties.Value("Custom", "PTN_TAG") = ""
iProperties.Value("Custom", "PTN_TITLE_EN") = ""
iProperties.Value("Custom", "PTN_TITLE_NL") = ""
iProperties.Value("Custom", "PTN_TITLE_FR") = ""
iProperties.Value("Custom", "PTN_TRADEMARK") = ""
iProperties.Value("Custom", "PTN_TRADEMARK_ARTNR") = ""
iProperties.Value("Custom", "PTN_TYPE") = ""
iProperties.Value("Custom", "PTN_WEIGHT") = ""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 07:34:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173536#M115127</guid>
      <dc:creator>johan.degreef</dc:creator>
      <dc:date>2021-03-21T07:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173542#M115128</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1015119"&gt;@sbromley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are all the files in one folder or are you opening them on a case by case basis? You should be able to run a rule as above on all the files using a batch tool once you know what they are and where they are. There is a great batch tool here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/any-way-to-automatically-update-all-related-drawings/td-p/6467490" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-forum/any-way-to-automatically-update-all-related-drawings/td-p/6467490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor/learn-explore/caas/screencast/Main/Details/4ab05506-6db8-4065-8f00-be7f57632df0.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor/learn-explore/caas/screencast/Main/Details/4ab05506-6db8-4065-8f00-be7f57632df0.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does take a bit of testing when integrating these rules but it works really well. I will give it a go with&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4047630"&gt;@gcoombridge&lt;/a&gt;&amp;nbsp;code and post it up when working. You will be sipping tea/coffee in the break room while the computer is churning true the files in know time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 07:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173542#M115128</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-03-21T07:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173571#M115129</link>
      <description>&lt;P&gt;I had made an assumption in the rule above that it would be run in an assembly containing all/many of the parts. If that assembly doesn't exist you could just create it..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 08:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10173571#M115129</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2021-03-21T08:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10175274#M115130</link>
      <description>&lt;P&gt;The files are not in one assembly they are all in one folder. I've no idea were you enter this code.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:52:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10175274#M115130</guid>
      <dc:creator>sbromley</dc:creator>
      <dc:date>2021-03-22T06:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10175275#M115131</link>
      <description>&lt;P&gt;The files are not in one assembly they are all in one folder. I've no idea were you enter this code.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10175275#M115131</guid>
      <dc:creator>sbromley</dc:creator>
      <dc:date>2021-03-22T06:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10175332#M115132</link>
      <description>&lt;P&gt;You would create an assembly - add the rule in the ilogic browser. Then drag and drop all part files in there (without constraining them - just use the assembly as a container). Run the code, save and then delete the assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was just the idea that came to me... The batch tool &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;posted looks awesome..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 07:32:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10175332#M115132</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2021-03-22T07:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10177121#M115133</link>
      <description>&lt;P&gt;Hi! Another workflow is to use File Explorer. You can multi-select the Inventor files in File Explorer -&amp;gt; iProperties -&amp;gt; Custom -&amp;gt; add the value. You don't need to launch Inventor to do that.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 19:29:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/10177121#M115133</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2021-03-22T19:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add new custom property to existing models</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/13932041#M404565</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 15:56:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/add-new-custom-property-to-existing-models/m-p/13932041#M404565</guid>
      <dc:creator>mark.vanderheijdenPFPP4</dc:creator>
      <dc:date>2025-12-04T15:56:48Z</dc:date>
    </item>
  </channel>
</rss>

