Hi
Is there any way to delete or suppress all broken constraints without opening all the parts one by one to delete them in Inventor?
When I edit or delete some component or subassembly and then open top assembly there are broken constraints or constraints that are missing other face. To fix this I have to close the design doctor and surf the model tree or use search to find the part by it's document number to open it. Then after opening it, i can delete the constraints and return to what i was doing previously. It is very time consuming. In Solid Edge you have a button to delete all conflicts or to suppress them in the doctor window, no matter on which level they are. Very rarely I want to fix the relationships. I'ts a lot easier to delete all and make new ones when you actually need them.
Solved! Go to Solution.
Solved by harvey3ELEA. Go to Solution.
Why delete and re-make the constraint when you can just repair it? Just randomly deleting may cause you to miss a constraint and then you have un-constrained items that you didn't realize because you just randomly deleted all??
Does it stink to open each component to fix...yes, but it is worth it to know what your design is actually doing.
If the component has been deleted or a hole has been deleted you can not repair this constraint. Usually I just delete all and not worry or care about missing constraints. Yes there are parts unconstrained but they do not cause any problems. I will constrain everything eventually, but during design it is ok not to have them and not to spend time on fixing things that will be broken again in the next five minutes.
And I find that repairing broken constraints takes more time than re-doing them when the need arises. Delete all and move along.
Hi!
There's no option to do that "delete sick constrains", but, in my case, i used to go to the Relationships folder, select the sick constrains and delete them (or repair them).
I find this method easy and quick.
This works if the broken relationships are in the same assembly. Sometimes when things get broken they get broken in multiple different levels and assemblies. So you won't see them in one place and will have to search for them in the model tree. And even then you can not delete them without editing or opening this assembly.
As i said, there's no option to do that out of the box.
Maybe it can be doable with an i logic Routine, ask for that in Inventor programming forum.
Here's what I've used over the years pulled from the iLogic Forum:
Dim oAssDoc As AssemblyDocument oAssDoc = ThisApplication.ActiveDocument Dim oConstraint As AssemblyConstraint RUSure = MessageBox.Show _ ("Are you sure you want to Delete all sick constraints?", _ "iLogic",MessageBoxButtons.YesNo) If RUSure = vbNo Then Return Else i = 0 For Each oConstraint In oAssDoc.ComponentDefinition.Constraints If oConstraint.HealthStatus <> oConstraint.HealthStatus.kUpToDateHealth And _ oConstraint.HealthStatus <> oConstraint.HealthStatus.kSuppressedHealth Then oConstraint.Delete i = i + 1 End If Next End If MessageBox.Show(" A total of "& i & " constraints were deleted.", "iLogic")
Can't find what you're looking for? Ask the community or share your knowledge.