<?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 remove custom iProperty with iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/11809289#M129017</link>
    <description>&lt;P&gt;Hello Curtis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the version with keeping the iProps in the list.&lt;BR /&gt;Unfortunately I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Ausnahme von HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea what this could be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 08:57:12 GMT</pubDate>
    <dc:creator>alexander_dolls</dc:creator>
    <dc:date>2023-03-09T08:57:12Z</dc:date>
    <item>
      <title>How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4364060#M128999</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;migrating our old&amp;nbsp;Inventor data to our new system. I will do an ilogic script for&amp;nbsp;that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to add custom iProperties with iLogic but how can I remove them? Is it possible with iLogic? I would like to&amp;nbsp;clean out all old iProperties that&amp;nbsp;we don't need anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 04:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4364060#M128999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-13T04:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4364841#M129000</link>
      <description>&lt;P&gt;Hi TimoVahteri8922,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can run&amp;nbsp; this snippet from the part file to remove &lt;STRONG&gt;ALL&lt;/STRONG&gt; custom iProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp in oCustomPropertySet
'delete the custom iProperty
oCustProp.Delete 
Next&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use this snippet if you have a custom property you do not want to delete you can check for it by name, and delete the rest:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp in oCustomPropertySet
'check for a property name that you don't want to delete
If Not oCustProp.name = "HelloWorld" Then
'delete the custom iProperty
oCustProp.Delete 
Else 
End If
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You can use this snippet to define a list of properties to keep, and then delete any not in that list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define list of custom properties to keep
Dim MyArrayList As New ArrayList
MyArrayList.add("Hello World 001")
MyArrayList.add("Hello World 002")
MyArrayList.add("Hello World 003")

'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp in oCustomPropertySet
'check property name against the list you don't want to delete
If MyArrayList.Contains(oCustProp.name)Then
'skip it
Else 
'delete the custom iProperty
oCustProp.Delete 
End If
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2013 15:25:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4364841#M129000</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2013-08-13T15:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4365630#M129001</link>
      <description>Thank you! This is just what I needed.</description>
      <pubDate>Wed, 14 Aug 2013 05:51:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4365630#M129001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-14T05:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4878538#M129002</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like I&amp;nbsp;am looking for a forth kind of snippet&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need an iLogic-rule that deletes a list of custom properties. I want only the custom properties in my list to be deleted, all other properties I want to keep...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a snippet for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be very greatful if someone could come up with this...&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4878538#M129002</guid>
      <dc:creator>tegstette</dc:creator>
      <dc:date>2014-03-11T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4878588#M129003</link>
      <description>&lt;P&gt;Hi tegstette,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This rule will delete all of the properties that you add to the list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties to delete
Dim MyArrayList As New ArrayList
MyArrayList.add("Hello World 001")
MyArrayList.add("Hello World 002")
MyArrayList.add("Hello World 003")

'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp in oCustomPropertySet
'check property name against the list you want to delete
If MyArrayList.Contains(oCustProp.name)Then
'delete the custom iProperty
oCustProp.Delete 
Else 
'skip it
End If
Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:21:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4878588#M129003</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2014-03-11T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4878998#M129004</link>
      <description>&lt;P&gt;Perfect! Just what I needed! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick and kind reply!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 18:19:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4878998#M129004</guid>
      <dc:creator>tegstette</dc:creator>
      <dc:date>2014-03-11T18:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4989508#M129005</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is it possibyl to delete only the value on custom iproperties?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 08:56:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/4989508#M129005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-25T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/5062780#M129006</link>
      <description>&lt;P&gt;Hi, and thanks so much again for the code you provided me, Curtis&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked just perfect in Inventor file by file!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then I wanted to use this in a batch-job-program (code injector)&amp;nbsp;and I get syntax error, and a message thet says 'oCustProp' is not delared... Now I am a little desperate because I cannot find a solution for it and I have stated a mayjor batch-cleaning-job...&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code (that works perfectly&amp;nbsp;in Invenor - but not in the batch-program)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'define list of custom properties to delete
Dim MyArrayList As New ArrayList

MyArrayList.add("TitleFormula")
MyArrayList.add("Tolerance")
MyArrayList.add("bh")


'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp In oCustomPropertySet
'check property name against the list you want to delete
If MyArrayList.Contains(oCustProp.Name)Then
'delete the custom iProperty
oCustProp.Delete 
Else 
'skip it
End If
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach&amp;nbsp;the errors and warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really hope someone can help me with a quick tip, so I hopefully can proceed our panned job...&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 08:17:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/5062780#M129006</guid>
      <dc:creator>tegstette</dc:creator>
      <dc:date>2014-05-29T08:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/5063534#M129007</link>
      <description>&lt;P&gt;Hi tegstette, &lt;/P&gt;
&lt;P&gt;I think you just need to add this line:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dim oCustProp As Inventor.Property&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties to delete
Dim MyArrayList As New ArrayList
MyArrayList.add("TitleFormula")
MyArrayList.add("Tolerance")
MyArrayList.add("bh")

Dim oCustProp As Inventor.Property

'define custom property collection
oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
'look at each property in the collection
For Each oCustProp In oCustomPropertySet
'check property name against the list you want to delete
If MyArrayList.Contains(oCustProp.Name)Then
'delete the custom iProperty
oCustProp.Delete 
Else 
'skip it
End If
Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 15:16:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/5063534#M129007</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2014-05-29T15:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/5065136#M129008</link>
      <description>&lt;PRE&gt;'Rule 1:

'Delete user Parameter "Each" if exists

Dim oDoc As PartDocument=ThisDoc.Document

Dim param As Parameter 
			
		Try
			param = oDoc.ComponentDefinition.Parameters.Item("Each") 
			param.Delete
			Catch
		End Try



'-------------------------------------------

'Rule 2:


'If file has AreaFP = SLETT , then delete property AreaFP
		Try
			If iProperties.Value("Custom", "AreaFP").ToUpper = "SLETT" Then
					
				'define list of custom properties to delete
				Dim MyArrayList2 As New ArrayList		
				MyArrayList2.add("AreaFP")			
				'define custom property collection
				oCustomPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")
				'look at each property in the collection
				For Each oCustProp In oCustomPropertySet
				'check property name against the list you want to delete
				If MyArrayList2.Contains(oCustProp.Name)Then
					'delete the custom iProperty
					oCustProp.Delete 
				End If
				Next
			End If
		Catch ex As Exception
		'Here I can add a messagebox
		'MsgBox(ex.ToString)
		End Try



&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, and thank you for your answer&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally found the problem... we have a lot of files with a user parameter (fx-paremeters) that is no longer in use,&amp;nbsp;and this&amp;nbsp;is called "Each" - and it is exported to create a custom property that is called "Each". Problem is that "Each" is also used in the code...:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For &lt;FONT size="4"&gt;&lt;STRONG&gt;Each&lt;/STRONG&gt; &lt;/FONT&gt;oCustProp In oCustomPropertySet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to make a rule to delete this user parameter and this works good if this is the only code in the rule, but when the rule continues to the delete customproperties,&amp;nbsp;it seems like it still remembers Each as parameter. So my challenge now is how to "break" this memory... Here is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp; help me with at tip?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 11:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/5065136#M129008</guid>
      <dc:creator>tegstette</dc:creator>
      <dc:date>2014-05-30T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7063778#M129009</link>
      <description>&lt;P&gt;Hi Curtis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to get your code to work at the assembly level?&amp;nbsp;In other words delete custom iprops&amp;nbsp;from the top level assembly, all subassemblies, and all parts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know about the traverse assembly method but can't figure out how to get things working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 09:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7063778#M129009</guid>
      <dc:creator>mcloughlin_b</dc:creator>
      <dc:date>2017-05-05T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7065033#M129010</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2465441"&gt;@mcloughlin_b&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a quick iLogic rule that deletes every custom iProperty in every occurrence ( parts and subassemblies) in the assembly. I only did minimal testing, so post back if it does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  

	'define custom property collection
	oCustomPropertySet = oOccurrence.Definition.Document.PropertySets.Item("Inventor User Defined Properties")
	'look at each property in the collection
	For Each oCustProp In oCustomPropertySet
	'delete the custom iProperty
	oCustProp.Delete
	Next
Next&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2017 17:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7065033#M129010</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2017-05-05T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7065871#M129011</link>
      <description>&lt;P&gt;HI Curtis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works great but can it be tweaked to only delete custom props from an arraylist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 23:58:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7065871#M129011</guid>
      <dc:creator>mcloughlin_b</dc:creator>
      <dc:date>2017-05-05T23:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7069374#M129012</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2465441"&gt;@mcloughlin_b&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That works great but can it be tweaked to only delete custom props from an arraylist?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi mcloughlin_b,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Sure, see the first example below, note I've added the converse of this as well, just in case it's helpful to someone in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&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;P&gt;Delete only custom iProps that ARE in the list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties
Dim MyArrayList As New ArrayList
MyArrayList.add("Hello World 001")
MyArrayList.add("Hello World 002")
MyArrayList.add("Hello World 003")

Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  

	'define custom property collection
	oCustomPropertySet = oOccurrence.Definition.Document.PropertySets.Item("Inventor User Defined Properties")
	'look at each property in the collection
	For Each oCustProp In oCustomPropertySet
	'check property name against the list  
		If MyArrayList.Contains(oCustProp.Name)Then
		'delete the custom iProperty
		oCustProp.Delete 
		End If
	Next
Next&lt;/PRE&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Delete only custom iProps that are NOT in the list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties
Dim MyArrayList As New ArrayList
MyArrayList.add("Hello World 001")
MyArrayList.add("Hello World 002")
MyArrayList.add("Hello World 003")

Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  

	'define custom property collection
	oCustomPropertySet = oOccurrence.Definition.Document.PropertySets.Item("Inventor User Defined Properties")
	'look at each property in the collection
	For Each oCustProp In oCustomPropertySet
	'check property name against the list  
		If MyArrayList.Contains(oCustProp.Name)Then
		'skip it
		Else 
		'delete the custom iProperty
		oCustProp.Delete 
		End If
	Next
Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 15:22:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7069374#M129012</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2017-05-08T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7212144#M129013</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt;&amp;nbsp;Hi Curtis, thanks for the last bit of code. I have tried to tweak it a bit to create two different array lists so that I can perform different actions on each list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties
Dim MyArrayList As New ArrayList
MyArrayList.add("STEEL)
MyArrayList.add("STEEL")

Dim MyArrayList1 As New ArrayList
MyArrayList1.add("PAINT")
MyArrayList1.add("PAINT")

Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  

	'define custom property collection
	oCustomPropertySet = oOccurrence.Definition.Document.PropertySets.Item("Inventor User Defined Properties")
	'look at each property in the collection
	For Each oCustProp In oCustomPropertySet
	'check property name against the list  
		If MyArrayList.Contains(oCustProp.Name) Then
		MessageBox.Show(oOccurrence.ReferencedFileDescriptor.FullFileName &amp;amp; " contains STEEL operations, which will be deleted.", "STEEL Operations")
		'delete the custom iProperty
		oCustProp.Delete&lt;BR /&gt;                MsgBox(oCustProp.Name &amp;amp; " was deleted")
                'Going to add a line here to add a replacement iProp
		End If
	'check property name against the list  
		If MyArrayList1.Contains(oCustProp.Name) Then
		MessageBox.Show(oOccurrence.ReferencedFileDescriptor.FullFileName &amp;amp; " contains PAINT operations, which will be deleted.", "PAINT Operations")
		'delete the custom iProperty
		oCustProp.Delete&lt;BR /&gt;                MsgBox(oCustProp.Name &amp;amp; " was deleted")
                'Going to add a line here to add a replacement iProp
		End If
	Next
Next&lt;/PRE&gt;
&lt;P&gt;I ran the code in a simple assembly where the sub part had both iProps present, it notifies me with the first msg box and deletes the iProps but I get this error before the second msg box:&lt;/P&gt;
&lt;P&gt;Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas how I can fix?&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 10:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7212144#M129013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7212965#M129014</link>
      <description>&lt;P&gt;Hi c.rp.Henderson,&lt;/P&gt;
&lt;P&gt;As written, I don't see a need for the 2 lists, so I think you can use one list and an&amp;nbsp; 'Else If' to resolve this as in this 1st version:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties
Dim MyArrayList As New ArrayList
MyArrayList.add("STEEL")
MyArrayList.add("PAINT")

Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  

	'define custom property collection
	oCustomPropertySet = oOccurrence.Definition.Document.PropertySets.Item("Inventor User Defined Properties")
	'look at each property in the collection
	For Each oCustProp In oCustomPropertySet
	'check property name against the list  
		If MyArrayList.Contains(oCustProp.Name) Then
		MessageBox.Show(oOccurrence.ReferencedFileDescriptor.FullFileName &amp;amp; " contains STEEL operations, which will be deleted.", "STEEL Operations")
		'delete the custom iProperty
		oCustProp.Delete
                MsgBox(oCustProp.Name &amp;amp; " was deleted")
                'Going to add a line here to add a replacement iProp
	
	'check property name against the list  
		Else If MyArrayList.Contains(oCustProp.Name) Then
		MessageBox.Show(oOccurrence.ReferencedFileDescriptor.FullFileName &amp;amp; " contains PAINT operations, which will be deleted.", "PAINT Operations")
		'delete the custom iProperty
		oCustProp.Delete
                MsgBox(oCustProp.Name &amp;amp; " was deleted")
                'Going to add a line here to add a replacement iProp
		End If
	Next
Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the 2 lists are required, then you can add a 'Continue For' line to move on once the first If/Then has executed. I think the error you're getting is because the property is deleted, and then 2nd If/Then condition is looking at that property still. The 'Continue For'&amp;nbsp;should resolve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'define list of custom properties
Dim MyArrayList As New ArrayList
MyArrayList.add("STEEL")

'define list of custom properties
Dim MyArrayList1 As New ArrayList
MyArrayList1.add("PAINT")

Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences.AllReferencedOccurrences(oAsmCompDef)  

	'define custom property collection
	oCustomPropertySet = oOccurrence.Definition.Document.PropertySets.Item("Inventor User Defined Properties")
	'look at each property in the collection
	For Each oCustProp In oCustomPropertySet
	'check property name against the list  
		If MyArrayList.Contains(oCustProp.Name) Then
		MessageBox.Show(oOccurrence.ReferencedFileDescriptor.FullFileName &amp;amp; " contains STEEL operations, which will be deleted.", "STEEL Operations")
		'delete the custom iProperty
		oCustProp.Delete
                MsgBox(oCustProp.Name &amp;amp; " was deleted")
                'Going to add a line here to add a replacement iProp
		Continue For
		
		End If
	'check property name against the list  
		If MyArrayList1.Contains(oCustProp.Name) Then
		MessageBox.Show(oOccurrence.ReferencedFileDescriptor.FullFileName &amp;amp; " contains PAINT operations, which will be deleted.", "PAINT Operations")
		'delete the custom iProperty
		oCustProp.Delete
                MsgBox(oCustProp.Name &amp;amp; " was deleted")
                'Going to add a line here to add a replacement iProp
		End If
	Next
Next&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7212965#M129014</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2017-07-07T14:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7791760#M129015</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wonder if you could help me on a similar matter. I've used a custom task in task scheduler to create a custom property across our library in the vault. But now I want to delete a certain property (category) from the custom properties, again using an external rule via the custom task in task scheduler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any chance you know how to create a ilogic rule to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:15:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/7791760#M129015</guid>
      <dc:creator>martinBV7H5</dc:creator>
      <dc:date>2018-02-20T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/10128205#M129016</link>
      <description>&lt;P&gt;Life and time saver..Great&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 22:53:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/10128205#M129016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T22:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/11809289#M129017</link>
      <description>&lt;P&gt;Hello Curtis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the version with keeping the iProps in the list.&lt;BR /&gt;Unfortunately I get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Ausnahme von HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea what this could be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 08:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/11809289#M129017</guid>
      <dc:creator>alexander_dolls</dc:creator>
      <dc:date>2023-03-09T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove custom iProperty with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/11809313#M129018</link>
      <description>&lt;P&gt;i Forget&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;MyArrayList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"AENDERUNGS_DATUM"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"AENDERUNG_NAME"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"B"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"D"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"L"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"G_L"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"H1"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"H2"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"DATUM_GEZ"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_ITERATION"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_LIFECYCLE"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_LIFECYCLE_STATE"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_NAME"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_NUMBER"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_ORGANIZATION_ID"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PTC_WM_REVISION"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_AENDERUNGSNUMMER"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_ARTIKELNUMMER"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_DIN_NR"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_ERSATZ_FÜR"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_GEPRUEFT_AM"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_GEPRUEFT_DURCH"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_TITEL"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"TK_TITEL_EN"&lt;/SPAN&gt;)
&lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"ZEICHNUNGSNR"&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedOccurrences&lt;/SPAN&gt;(&lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt;)

		&lt;SPAN&gt;oCustomPropertySet&lt;/SPAN&gt; = &lt;SPAN&gt;oOccurrence&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor User Defined Properties"&lt;/SPAN&gt;)
		&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oCustProp&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oCustomPropertySet&lt;/SPAN&gt;
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MyArrayList&lt;/SPAN&gt;.&lt;SPAN&gt;Contains&lt;/SPAN&gt;(&lt;SPAN&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN&gt;name&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;'skip it&lt;/SPAN&gt;
			&lt;SPAN&gt;Else&lt;/SPAN&gt;
			&lt;SPAN&gt;oCustProp&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&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;Next&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2023 09:12:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-remove-custom-iproperty-with-ilogic/m-p/11809313#M129018</guid>
      <dc:creator>alexander_dolls</dc:creator>
      <dc:date>2023-03-09T09:12:26Z</dc:date>
    </item>
  </channel>
</rss>

