<?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: Ilogic is way too slow in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792539#M9877</link>
    <description>&lt;P&gt;I have extended this code, which works so far (everything is suppressed). But I get an error message that I can't identify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;features&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;()
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - length side above  - Field 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - width side above - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - length side middle  - Field 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - length side above - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - Sketch - length side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - longhole - length side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - longhole - length side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - width side above - Field 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - floor"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - floor thickness"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - latch"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - width side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - Corner - 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - Corner - 2"&lt;/SPAN&gt;))

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Level:of:detail&lt;/SPAN&gt; = &lt;SPAN&gt;"low"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;SuppressFeatures&lt;/SPAN&gt;(&lt;SPAN&gt;features&lt;/SPAN&gt;) &lt;FONT color="#FF0000"&gt;&lt;U&gt;ERROR&lt;/U&gt;&lt;/FONT&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Level:of:detail&lt;/SPAN&gt; = &lt;SPAN&gt;"hight"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;UnsuppressFeatures&lt;/SPAN&gt;(&lt;SPAN&gt;features&lt;/SPAN&gt;) &lt;U&gt;&lt;FONT color="#FF0000"&gt;ERROR&lt;/FONT&gt;&lt;/U&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michael_janssenCN38L_0-1716461075635.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1366400iA3A42D89F373203E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michael_janssenCN38L_0-1716461075635.png" alt="michael_janssenCN38L_0-1716461075635.png" /&gt;&lt;/span&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;Attached is the corrected file&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 10:47:43 GMT</pubDate>
    <dc:creator>michael_janssenCN38L</dc:creator>
    <dc:date>2024-05-23T10:47:43Z</dc:date>
    <item>
      <title>Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12791931#M9873</link>
      <description>&lt;P&gt;I have constructed a basket here that is built with an Ilogic code in order to be able to control the parameter "Level of detail" - "high" and "low".&lt;/P&gt;&lt;P&gt;The idea is to reduce the file size of the components in an assembly using this parameter if you don't need all the details. This is a controllable type of Simplify.&lt;/P&gt;&lt;P&gt;The problem is that when I press the parts by hand, the speed is acceptable.&lt;/P&gt;&lt;P&gt;But if ilogic is supposed to do that, it just takes too long.&lt;/P&gt;&lt;P&gt;Are there any suggested solutions?&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="michael_janssenCN38L_0-1716444281107.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1366236iA2BFBE9AA71F180D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michael_janssenCN38L_0-1716444281107.png" alt="michael_janssenCN38L_0-1716444281107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 06:04:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12791931#M9873</guid>
      <dc:creator>michael_janssenCN38L</dc:creator>
      <dc:date>2024-05-23T06:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792012#M9874</link>
      <description>&lt;P&gt;This is because the part is recalculated after each feature state change. You can &lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-FE09E8C2-35EC-4E61-BE36-96BFC28EAF00" target="_blank" rel="noopener"&gt;suppress&lt;/A&gt;/&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-6EC70F95-6E50-4F48-B0A0-2C14E2D992B9" target="_blank" rel="noopener"&gt;unsuppress&lt;/A&gt; features as a single call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim part As PartDocument = ThisDoc.Document

Dim features As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection()
features.Add(Feature.InventorFeature("Hole - length side above 1 - Field 1"))
features.Add(Feature.InventorFeature("Hole - length side middle 1 - Field 1"))
features.Add(Feature.InventorFeature("Hole - length side above 1 - Field 2"))
features.Add(Feature.InventorFeature("Hole - Sketch - length side middle - Field 2"))
features.Add(Feature.InventorFeature("Extrusion - longhole - length side middle - Field 2"))
features.Add(Feature.InventorFeature("Hole - width side above - Field 1"))
features.Add(Feature.InventorFeature("Hole - floor"))
features.Add(Feature.InventorFeature("Extrusion32"))

If Level:of:detail = "low" Then
	part.ComponentDefinition.SuppressFeatures(features)
End If

If Level:of:detail = "hight" Then
	part.ComponentDefinition.UnsuppressFeatures(features)
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in general. I don't know what is the purpose of this model, but if you want to use this for visualization or as a placeholder, use only appearance of the model instead of full geometry. This is much better for performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 06:42:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792012#M9874</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-05-23T06:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792040#M9875</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;great idea and thank you very much. This made it faster.&lt;BR /&gt;The idea is to reduce the file size in an assembly. We install approx. 20 to 30 pieces in the assemblies.&lt;/P&gt;&lt;P&gt;The idea is that if I need all the details "high" (for machine design) I can toggle this.&lt;/P&gt;&lt;P&gt;If not, switch this to "low" to improve performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't fully understand your solution? Do you have a file as an example?&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 06:52:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792040#M9875</guid>
      <dc:creator>michael_janssenCN38L</dc:creator>
      <dc:date>2024-05-23T06:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792405#M9876</link>
      <description>&lt;P&gt;I don´t understand:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"But in general. I don't know what is the purpose of this model, but if you want to use this for visualization or as a placeholder, use only appearance of the model instead of full geometry. This is much better for performance."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can you explain me?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 09:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792405#M9876</guid>
      <dc:creator>michael_janssenCN38L</dc:creator>
      <dc:date>2024-05-23T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792539#M9877</link>
      <description>&lt;P&gt;I have extended this code, which works so far (everything is suppressed). But I get an error message that I can't identify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;part&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;features&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ObjectCollection&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN&gt;CreateObjectCollection&lt;/SPAN&gt;()
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - length side above  - Field 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - width side above - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - length side middle  - Field 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - length side above - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - Sketch - length side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - longhole - length side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - longhole - length side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - width side above - Field 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - floor"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - floor thickness"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Hole - latch"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - width side middle - Field 2"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - Corner - 1"&lt;/SPAN&gt;))
&lt;SPAN&gt;features&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Feature&lt;/SPAN&gt;.&lt;SPAN&gt;InventorFeature&lt;/SPAN&gt;(&lt;SPAN&gt;"Extrusion - Corner - 2"&lt;/SPAN&gt;))

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Level:of:detail&lt;/SPAN&gt; = &lt;SPAN&gt;"low"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;SuppressFeatures&lt;/SPAN&gt;(&lt;SPAN&gt;features&lt;/SPAN&gt;) &lt;FONT color="#FF0000"&gt;&lt;U&gt;ERROR&lt;/U&gt;&lt;/FONT&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Level:of:detail&lt;/SPAN&gt; = &lt;SPAN&gt;"hight"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;part&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;UnsuppressFeatures&lt;/SPAN&gt;(&lt;SPAN&gt;features&lt;/SPAN&gt;) &lt;U&gt;&lt;FONT color="#FF0000"&gt;ERROR&lt;/FONT&gt;&lt;/U&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michael_janssenCN38L_0-1716461075635.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1366400iA3A42D89F373203E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michael_janssenCN38L_0-1716461075635.png" alt="michael_janssenCN38L_0-1716461075635.png" /&gt;&lt;/span&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;Attached is the corrected file&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 10:47:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12792539#M9877</guid>
      <dc:creator>michael_janssenCN38L</dc:creator>
      <dc:date>2024-05-23T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12794685#M9878</link>
      <description>&lt;P&gt;You are right. The reason of error is when you try to suppress currently suppressed feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim part As PartDocument = ThisDoc.Document

Dim features As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection()
features.Add(Feature.InventorFeature("Hole - length side above 1 - Field 1"))
features.Add(Feature.InventorFeature("Hole - length side middle 1 - Field 1"))
features.Add(Feature.InventorFeature("Hole - length side above 1 - Field 2"))
features.Add(Feature.InventorFeature("Hole - Sketch - length side middle - Field 2"))
features.Add(Feature.InventorFeature("Extrusion - longhole - length side middle - Field 2"))
features.Add(Feature.InventorFeature("Hole - width side above - Field 1"))
features.Add(Feature.InventorFeature("Hole - floor"))
features.Add(Feature.InventorFeature("Extrusion32"))

If Level:of:detail = "low" Then
	Dim featuresToSuppress = ThisApplication.TransientObjects.CreateObjectCollection()
	For Each f As PartFeature In features
		If Not f.Suppressed Then featuresToSuppress.Add(f)
	Next

	part.ComponentDefinition.SuppressFeatures(featuresToSuppress) 'NO Error
End If

If Level:of:detail = "hight" Then
	Dim featuresToUnsuppress = ThisApplication.TransientObjects.CreateObjectCollection()
	For Each f As PartFeature In features
		If f.Suppressed Then featuresToUnsuppress.Add(f)
	Next
	part.ComponentDefinition.UnsuppressFeatures(featuresToUnsuppress) ' NO Error
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In attachment is the sample how to use appearance in simplified model. Size is reduced from 7.5MB to 300 kB&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelNavara_0-1716533124454.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1366829i8C45E12BEFF04757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelNavara_0-1716533124454.png" alt="MichaelNavara_0-1716533124454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 06:45:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12794685#M9878</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-05-24T06:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12794721#M9879</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;First of all, THANK YOU SO MUCH for your great support.&lt;BR /&gt;The code works perfectly.&lt;/P&gt;&lt;P&gt;Now to your suggestion. This Simplify in Inventor is somehow too rough and uncontrollable for us, as it no longer has much to do with the original.&lt;/P&gt;&lt;P&gt;You can't suppress it in a controlled manner. Hence the current attempted way of working. (Hopefully not the wrong way)&lt;/P&gt;&lt;P&gt;As you have probably seen, we can switch between high and low level mode via the model state. Which works very well.&lt;/P&gt;&lt;P&gt;We have many such delivery parts that we receive as step files. Unfortunately, as in this case, they are over 90 MB in size. I got this to 10 MB by building it in Inventor.&lt;/P&gt;&lt;P&gt;Attached is the file with the changes.&lt;/P&gt;&lt;P&gt;And thank you again!&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 07:07:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/12794721#M9879</guid>
      <dc:creator>michael_janssenCN38L</dc:creator>
      <dc:date>2024-05-24T07:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/13040952#M9880</link>
      <description>&lt;P&gt;Hello Michael,&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="michael_janssenCN38L_0-1727178365339.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1413147i8C29A2E1F1C0575D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michael_janssenCN38L_0-1727178365339.png" alt="michael_janssenCN38L_0-1727178365339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would it be possible (probably) to adapt your code so that all designations with 01 or 03 etc. are suppressed when selecting "Level:of:detail" "height" and "low"&lt;/P&gt;&lt;P&gt;Greetings from Kleve (Germany)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 11:48:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/13040952#M9880</guid>
      <dc:creator>michael_janssenCN38L</dc:creator>
      <dc:date>2024-09-24T11:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic is way too slow</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/13420686#M9881</link>
      <description>&lt;P&gt;Just want to add another thank you to this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had a part with 100 features that needed to be either shown or suppressed. including 2 features dependend on the main feature.&lt;/P&gt;&lt;P&gt;The code that was done took up to 20 minutes on a fast computer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With your approach it went down to less than 17 sec.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU SO MUCH!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 08:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-is-way-too-slow/m-p/13420686#M9881</guid>
      <dc:creator>LasseBodilsen</dc:creator>
      <dc:date>2025-04-11T08:23:40Z</dc:date>
    </item>
  </channel>
</rss>

