09-30-2024
06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-30-2024
06:56 AM
Use the "HealthStatusEnum.kBeyondStopNodeHealth":
https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-58D84911-253B-47F3-ABE7-3BF323CA85AD
For example:
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:")