Checking Constraint health in ilogic

Checking Constraint health in ilogic

Thomas.Long
Advocate Advocate
1,161 Views
1 Reply
Message 1 of 2

Checking Constraint health in ilogic

Thomas.Long
Advocate
Advocate

I have a program with a dynamic assembly that either checks for pre existing parts and inserts them in, or else inserts a dynamic part, feeds it the geometry necessary, and then saves it as a new part and reinserts the new part. The problem is some of the older parts were generated differently, meaning the faces on them are different from the faces on newer parts.

 

Until now I've been using a work around with regards to constraints, basically telling the program to check distances to see if they're breaking. I'm hoping that there is a more effective way to check the health status of constraints in an assembly, or possibly even have it fix the constraints on its own, though I think that might be much more difficult (sorry I'm very new at this). Could someone possibly help me with some code for constraint check? I'm not using the visual basic only code right now, I've just been using the built in inventor stuff.

 

Thank you all for your help.

0 Likes
1,162 Views
1 Reply
Reply (1)
Message 2 of 2

Curtis_Waguespack
Consultant
Consultant

 

Hi Thomas.Long 

 

You'll wan to use the HealthStatusEnums.

 

Here's a related link:

http://inventortrenches.blogspot.com/2013/01/ilogic-delete-all-sick-assembly.html

 

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

Name Value Description
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.

EESignature

0 Likes