<?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 Face Feature (V2022.2) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10909830#M133992</link>
    <description>&lt;P&gt;Doh...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the extra set of eyes!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 08:25:21 GMT</pubDate>
    <dc:creator>llorden4</dc:creator>
    <dc:date>2022-01-27T08:25:21Z</dc:date>
    <item>
      <title>Delete Face Feature (V2022.2)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10907627#M133943</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/command-manager-trim-surface/td-p/10901644" target="_blank" rel="noopener"&gt;Continuing from a previous issue post here...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been able to collect faces created from a Loft, then Split Faces, but I'm getting an Incorrect Parameter error here that I can't seem to get past.&lt;/P&gt;&lt;P&gt;Here's the instructions on how to use it and fortunately includes a link to some sample code, which I am mimicking.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-938EBBA8-F9EB-4E46-A6BC-F0C9AFA44EAF" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-938EBBA8-F9EB-4E46-A6BC-F0C9AFA44EAF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current code, I've validated I'm getting a good collection of faces&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oColl&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;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oFace&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Tube"&lt;/SPAN&gt;).&lt;SPAN&gt;Faces&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oEdge&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oFace&lt;/SPAN&gt;.&lt;SPAN&gt;Edges&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oMT&lt;/SPAN&gt;.&lt;SPAN&gt;GetMinimumDistance&lt;/SPAN&gt;(&lt;SPAN&gt;oEdge&lt;/SPAN&gt;.&lt;SPAN&gt;PointOnEdge&lt;/SPAN&gt;, &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;WorkPlanes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Base Sketch Plane"&lt;/SPAN&gt;)) = 0 &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;oColl&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oFace&lt;/SPAN&gt;)
			&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;For&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;SPAN&gt;'MsgBox(oColl.Count)&lt;/SPAN&gt;
&lt;SPAN&gt;oDeleteFace&lt;/SPAN&gt; = &lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;DeleteFaceFeatures&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oColl&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="llorden4_0-1643207185186.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1016526i2A7F6CA74C1B9A1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="llorden4_0-1643207185186.png" alt="llorden4_0-1643207185186.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="llorden4_1-1643207245751.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1016527i9A4DEA2E3EE899B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="llorden4_1-1643207245751.png" alt="llorden4_1-1643207245751.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="llorden4_2-1643207279855.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1016528i07D300A3F71B3D8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="llorden4_2-1643207279855.png" alt="llorden4_2-1643207279855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried toggling the Boolean to True just in case Inventor is insisting on making the repairs, but that too fails.&lt;/P&gt;&lt;P&gt;The manual approach here works without issues without the repairs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="llorden4_3-1643207543227.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1016533iA24FE07E64114377/image-size/medium?v=v2&amp;amp;px=400" role="button" title="llorden4_3-1643207543227.png" alt="llorden4_3-1643207543227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's not a lot of variations in coding documented here, what do I need here?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 19:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10907627#M133943</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-26T19:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Face Feature (V2022.2)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10909750#M133990</link>
      <description>&lt;P&gt;Your variable oColl should be of type&amp;nbsp;FaceCollection instead oj ObjectCollection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'Dim oColl = ThisApplication.TransientObjects.CreateObjectCollection

Dim oColl = ThisApplication.TransientObjects.CreateFaceCollection&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 07:40:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10909750#M133990</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-01-27T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Face Feature (V2022.2)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10909830#M133992</link>
      <description>&lt;P&gt;Doh...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the extra set of eyes!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 08:25:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/delete-face-feature-v2022-2/m-p/10909830#M133992</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-27T08:25:21Z</dc:date>
    </item>
  </channel>
</rss>

