Hi JorisSteurs1246,
I think you want to use kInErrorHealth rather than kBeyondStopNodeHealth.
Of you might use kUpToDateHealth , something like this:
If oFeature.HealthStatus <> HealthStatusEnum.kUpToDateHealth Then ...
Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
HealthStatusEnum Enumerator
Description
Constants signifying the state of the Object.
Methods
kBeyondStopNodeHealth |
11785 |
Object is beyond stop node in the browser. |
kCannotComputeHealth |
11783 |
Object cannot be evaluated. |
kDeletedHealth |
11782 |
Object has been destroyed. You may be holding on to an empty 'shell' of the Object. |
kDriverLostHealth |
11780 |
Object is driven by data from other Object(s), and one or more of them have been disconnected. |
kInconsistentHealth |
11786 |
Object is inconsistent with another object. |
kInErrorHealth |
11781 |
Object's internal state is in error. |
kInvalidLimitsHealth |
11789 |
Object has bad limits. e.g. max < min. |
kJointDOFLockedHealth |
11790 |
Object is locked Joint. |
kNewlyAddedHealth |
11788 |
Object is newly added or unsuppressed and has not been solved yet. |
kOutOfDateHealth |
11779 |
Object needs to be recomputed with respect to its 'driver(s)'. |
kRedundantHealth |
11787 |
Object's solution is redundant with another object. |
kSuppressedHealth |
11784 |
Object has been suppressed. |
kUnknownHealth |
11777 |
Object's status is not known. |
kUpToDateHealth |
11778 |
Object is up to date. |