<?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: Delete all components from assembly fast in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533542#M14005</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4898893"&gt;@J-Camper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainty a fast method nice thanks for sharing, 700 occurrences in 1.53 sec vs 11 sec one by one. The power of the select set I guess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm the transaction has no bearing on the time in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a&amp;nbsp; timer I found on here a while ago, handy when testing.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;stopWatch&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;Stopwatch&lt;/SPAN&gt;()
&lt;SPAN&gt;stopWatch&lt;/SPAN&gt;.&lt;SPAN&gt;Start&lt;/SPAN&gt;()

&lt;SPAN&gt;'enter your code to run here &lt;/SPAN&gt;


&lt;SPAN&gt;stopWatch&lt;/SPAN&gt;.&lt;SPAN&gt;Stop&lt;/SPAN&gt;()	

&lt;SPAN&gt;'Get the elapsed time as a TimeSpan value.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ts&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TimeSpan&lt;/SPAN&gt; = &lt;SPAN&gt;stopWatch&lt;/SPAN&gt;.&lt;SPAN&gt;Elapsed&lt;/SPAN&gt;

&lt;SPAN&gt;'Format and display the TimeSpan value.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;elapsedTime&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"{0:00}:{1:00}:{2:00}.{3:00}"&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Hours&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Minutes&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Seconds&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Milliseconds&lt;/SPAN&gt; / 10)

&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"RunTime "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;elapsedTime&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 06:20:56 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2024-02-01T06:20:56Z</dc:date>
    <item>
      <title>Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532718#M13998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been puzzling over something that I think I'm just doing wrong. What I want to do is simply delete all components in an assembly as fast as possible. The code below does work, but it is painfully slow on larger assemblies, as it deletes occurence one by one. I have not found a code solution to delete everything in one go. If anybody could help me with the lines, I would highly appreciate that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim activeDoc As AssemblyDocument
activeDoc = ThisApplication.ActiveDocument

Dim assemblyDef As AssemblyComponentDefinition
assemblyDef = activeDoc.ComponentDefinition

' Disable graphics update to speed up the deletion process
ThisApplication.SilentOperation = True

' Iterate through all component occurrences and delete them
For Each compOcc As ComponentOccurrence In assemblyDef.Occurrences
    compOcc.Delete
Next

' Enable graphics update after deletion
ThisApplication.SilentOperation = False

MsgBox("All components deleted successfully.", vbInformation, "iLogic")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;/Rolf Even&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 20:33:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532718#M13998</guid>
      <dc:creator>RolfEven</dc:creator>
      <dc:date>2024-01-31T20:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532877#M13999</link>
      <description>&lt;P&gt;Doesn't delete all component in assembly equal to a new empty assembly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe put them all in selection list and delete?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-9A2B712A-A08C-4C1D-B3D8-8BE5B3A013C0" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-9A2B712A-A08C-4C1D-B3D8-8BE5B3A013C0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 21:34:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532877#M13999</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-01-31T21:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532899#M14000</link>
      <description>&lt;P&gt;Understandable question regarding New assembly, but I want to keep the current assembly, with it's Vault versions, iProperty values etc. I want to get rid off current assembly content and afterwards bring in different content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do this by hand, select all components and press Delete, it takes Inventor some time to select all components, but the delete is fast. This feels like something that is easy, but I have not found a way to write this correctly in iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the link, I'll see if I can figure out a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 21:41:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532899#M14000</guid>
      <dc:creator>RolfEven</dc:creator>
      <dc:date>2024-01-31T21:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532918#M14001</link>
      <description>&lt;P&gt;You can overwrite old file with new one using same name.&lt;/P&gt;&lt;P&gt;Add iProperties value and other info you need with iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do that all the time manually and with iLogic.&amp;nbsp; Vault won't complain.&amp;nbsp; As long as Revision is set.&lt;/P&gt;&lt;P&gt;Currently using iLogic to update Modelstate drawings.&lt;/P&gt;&lt;P&gt;Instead of edit and modify drawing, Save as from a "Template" and overwrite old one.&lt;/P&gt;&lt;P&gt;Because view and a few things were changed and there are 200 drawings.&lt;/P&gt;&lt;P&gt;Vault will keep the old versions.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 21:50:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532918#M14001</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-01-31T21:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532942#M14002</link>
      <description>&lt;P&gt;I think I understand your sugested workflow, I just need to re-think the process at my end a bit.&lt;/P&gt;&lt;P&gt;Appreciate the help so far, and I will explore that link you shared.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 22:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12532942#M14002</guid>
      <dc:creator>RolfEven</dc:creator>
      <dc:date>2024-01-31T22:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533134#M14003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/392122"&gt;@RolfEven&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe starting a transaction is key here. All deleted parts will be under one instead of under one per occurrence. &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TransactionManager_StartTransaction" target="_blank" rel="noopener"&gt;See help page here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my opinion it isn't possible to delete all in one go as you still need to grab the occurrence object and call the delete function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 23:36:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533134#M14003</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-01-31T23:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533371#M14004</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/392122"&gt;@RolfEven&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you for asking the question.&amp;nbsp; Before looking into this, I never realized you could cast an enumerator into an object collection while creating it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should be fast:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;If ThisDoc.Document.DocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kAssemblyDocumentObject Then Exit Sub
Dim ss As SelectSet = ThisDoc.Document.SelectSet
ss.Clear()
'Delete Patterns until there are no more
Dim oc As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection(ThisDoc.Document.ComponentDefinition.OccurrencePatterns)
While oc.Count &amp;gt; 0
	ss.SelectMultiple(oc)
	ss.Delete()
	oc = ThisApplication.TransientObjects.CreateObjectCollection(ThisDoc.Document.ComponentDefinition.OccurrencePatterns)
End While
'Delete All Occurrences
Dim oc2 As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection(ThisDoc.Document.ComponentDefinition.Occurrences)
ss.SelectMultiple(oc2)
ss.Delete()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The slowest part is the SelectMultiple Method which takes about 10 sec for an assembly with 500 occurrences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 02:59:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533371#M14004</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2024-02-01T02:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533542#M14005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4898893"&gt;@J-Camper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainty a fast method nice thanks for sharing, 700 occurrences in 1.53 sec vs 11 sec one by one. The power of the select set I guess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm the transaction has no bearing on the time in this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a&amp;nbsp; timer I found on here a while ago, handy when testing.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;stopWatch&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;Stopwatch&lt;/SPAN&gt;()
&lt;SPAN&gt;stopWatch&lt;/SPAN&gt;.&lt;SPAN&gt;Start&lt;/SPAN&gt;()

&lt;SPAN&gt;'enter your code to run here &lt;/SPAN&gt;


&lt;SPAN&gt;stopWatch&lt;/SPAN&gt;.&lt;SPAN&gt;Stop&lt;/SPAN&gt;()	

&lt;SPAN&gt;'Get the elapsed time as a TimeSpan value.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ts&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TimeSpan&lt;/SPAN&gt; = &lt;SPAN&gt;stopWatch&lt;/SPAN&gt;.&lt;SPAN&gt;Elapsed&lt;/SPAN&gt;

&lt;SPAN&gt;'Format and display the TimeSpan value.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;elapsedTime&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Format&lt;/SPAN&gt;(&lt;SPAN&gt;"{0:00}:{1:00}:{2:00}.{3:00}"&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Hours&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Minutes&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Seconds&lt;/SPAN&gt;, &lt;SPAN&gt;ts&lt;/SPAN&gt;.&lt;SPAN&gt;Milliseconds&lt;/SPAN&gt; / 10)

&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;"RunTime "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;elapsedTime&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 06:20:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12533542#M14005</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-02-01T06:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534112#M14006</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt; &amp;amp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4898893"&gt;@J-Camper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for helping me, highly appreciated. I have run the two different delete codes in this post together with the Stopwatch-code. For an assembly with 1711 Total Occurrences in Active document and 750 Documents open in session, I got these performances:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code in post 1: Runtime 00:02:45:33 | CPU one core varies @3,40-4,25 GHz.&lt;/P&gt;&lt;P&gt;Code in post 7: Runtime 00:00:06:14 | CPU one core stable @5,25 GHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A huge difference between the two different codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of curiosity; All assembly components are on assembly first level, and all of them are inside browser folders. I'm not sure if it possible to exploit that in order to speed up delete even further. For instance, "Delete components in Browser folder named Container, then Container2, then..."?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 12:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534112#M14006</guid>
      <dc:creator>RolfEven</dc:creator>
      <dc:date>2024-02-01T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534287#M14007</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4898893"&gt;@J-Camper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you for asking the question.&amp;nbsp; Before looking into this, I never realized you could cast an enumerator into an object collection while creating it.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This?&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;For Each compOcc As ComponentOccurrence In assemblyDef.Occurrences
    compOcc.Delete
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The power and curse of VB Dim everywhere and late casting.&lt;/P&gt;&lt;P&gt;Don't get used to it.&amp;nbsp; Other langrage won't allow it.&lt;/P&gt;&lt;P&gt;Late casting run slower also.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 13:57:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534287#M14007</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-02-01T13:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534387#M14008</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5289378"&gt;@Frederick_Law&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;No I meant this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oc As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection(ThisDoc.Document.ComponentDefinition.Occurrences)&lt;/LI-CODE&gt;&lt;P&gt;The object collection is nearly instantly filled with the all elements of the enumerator.&amp;nbsp; Object collections are used for a lot of inputs so I was happy to find that i could essentially covert an enumerator into an object collection without looping through the enumerator to add each element to the collection.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:29:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534387#M14008</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2024-02-01T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534508#M14009</link>
      <description>&lt;P&gt;It's using late binding:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VB-01.jpg" style="width: 734px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1321103i99AF57D085BFABCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="VB-01.jpg" alt="VB-01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intellisense doesn't work with late binding.&lt;/P&gt;&lt;P&gt;Sometime late binding give different object type than what I thought.&amp;nbsp; Difficult to debug.&lt;/P&gt;&lt;P&gt;Also I'm trying to use C# for addin.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:22:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534508#M14009</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-02-01T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534625#M14010</link>
      <description>&lt;P&gt;Just used this replace a For/Each in a cleanup rule (the assembly is build using a configurator)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huge improvement, and my max part count is as low as 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:53:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12534625#M14010</guid>
      <dc:creator>charles4L34S</dc:creator>
      <dc:date>2024-02-01T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12535252#M14011</link>
      <description>&lt;P&gt;-&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 21:26:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12535252#M14011</guid>
      <dc:creator>RolfEven</dc:creator>
      <dc:date>2024-02-01T21:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12535263#M14012</link>
      <description>&lt;P&gt;This is what I really like about this forum. Skillful people reply in no time and produces solutions to other people's challenges. Possibly discovering something useful elsewhere along the way. Then somebody else uses the provided code for similar/different things.&lt;/P&gt;&lt;P&gt;Brilliant, and thank you all for helping me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;/Rolf Even&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 21:25:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12535263#M14012</guid>
      <dc:creator>RolfEven</dc:creator>
      <dc:date>2024-02-01T21:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all components from assembly fast</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12539113#M14013</link>
      <description>&lt;P&gt;I don't think working through the browser nodes would be faster. If you manually select a folder only the folder gets selected. You would need to loop through the folder browser nodes one by one and select then find it's native object the occurrence and then delete. Effectively the same as what the code does currently but in a different method. &lt;A href="https://adndevblog.typepad.com/manufacturing/2013/07/inventor-api-resort-occurrences-in-assembly-browser.html" target="_blank" rel="noopener"&gt;Here is an an example of browser node/ interaction.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An alternative to this is to select the browser folder and run the command select folder contents and delete. I am not sure there is a usable workflow in this, just some thoughts to think over.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 05:27:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/delete-all-components-from-assembly-fast/m-p/12539113#M14013</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-02-04T05:27:44Z</dc:date>
    </item>
  </channel>
</rss>

