<?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 Check End of Part in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13054898#M172400</link>
    <description>&lt;P&gt;Use the "HealthStatusEnum.kBeyondStopNodeHealth":&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-58D84911-253B-47F3-ABE7-3BF323CA85AD" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-58D84911-253B-47F3-ABE7-3BF323CA85AD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim openDoc As Document
openDoc = ThisDoc.Document
Dim FeatureList As New ArrayList

For Each oFeature In openDoc.ComponentDefinition.Features
    If oFeature.HealthStatus = HealthStatusEnum.kBeyondStopNodeHealth = True  Then
            FeatureList.Add(oFeature.Name)
    End If		
Next

' Count the number of items in the FeatureList array
Dim FeatureCount As Integer
FeatureCount = FeatureList.Count

'Message box (customize this as you wish):
MessageBox.Show(FeatureCount, "Warning, features found below the End of Part marker:")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 13:59:42 GMT</pubDate>
    <dc:creator>Gabriel_Watson</dc:creator>
    <dc:date>2024-09-30T13:59:42Z</dc:date>
    <item>
      <title>iLogic Check End of Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13054798#M172399</link>
      <description>&lt;P&gt;Goodmorning Folks,&lt;/P&gt;&lt;P&gt;I was looking for an Ilogic that give me back an error message if the "end fo part" of an .ipt is not at the bottom of the three.&lt;/P&gt;&lt;P&gt;This can avoid us to forget to move down the "end of part" and be sure the part is complete with all features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 13:26:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13054798#M172399</guid>
      <dc:creator>eugenio_fU5HMF</dc:creator>
      <dc:date>2024-09-30T13:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Check End of Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13054898#M172400</link>
      <description>&lt;P&gt;Use the "HealthStatusEnum.kBeyondStopNodeHealth":&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-58D84911-253B-47F3-ABE7-3BF323CA85AD" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-58D84911-253B-47F3-ABE7-3BF323CA85AD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim openDoc As Document
openDoc = ThisDoc.Document
Dim FeatureList As New ArrayList

For Each oFeature In openDoc.ComponentDefinition.Features
    If oFeature.HealthStatus = HealthStatusEnum.kBeyondStopNodeHealth = True  Then
            FeatureList.Add(oFeature.Name)
    End If		
Next

' Count the number of items in the FeatureList array
Dim FeatureCount As Integer
FeatureCount = FeatureList.Count

'Message box (customize this as you wish):
MessageBox.Show(FeatureCount, "Warning, features found below the End of Part marker:")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 13:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13054898#M172400</guid>
      <dc:creator>Gabriel_Watson</dc:creator>
      <dc:date>2024-09-30T13:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Check End of Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13055245#M172401</link>
      <description>&lt;P&gt;Thanks so much for your solution.&lt;/P&gt;&lt;P&gt;Is it possible to edit this script and receive back the message just if the end of part is up?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 15:57:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13055245#M172401</guid>
      <dc:creator>eugenio_fU5HMF</dc:creator>
      <dc:date>2024-09-30T15:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Check End of Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13055302#M172402</link>
      <description>&lt;P&gt;Sure, you can modify the prompt any way you like. Add a condition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;'Message box (customize this as you wish):
If FeatureCount &amp;lt;&amp;gt; 0  Then
        MessageBox.Show(FeatureCount, "Number of features below End of Part:")
End If&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 16:24:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13055302#M172402</guid>
      <dc:creator>Gabriel_Watson</dc:creator>
      <dc:date>2024-09-30T16:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Check End of Part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13055345#M172403</link>
      <description>&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 16:49:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-check-end-of-part/m-p/13055345#M172403</guid>
      <dc:creator>eugenio_fU5HMF</dc:creator>
      <dc:date>2024-09-30T16:49:20Z</dc:date>
    </item>
  </channel>
</rss>

