cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Auto-Suppress Constraints Involving Suppressed Components

Auto-Suppress Constraints Involving Suppressed Components

Especially when working with different (nested) model states this results in a quite un-intuitive mess more often than not.

 

To my understanding:

  • Uncheck Visibility: Component is still loaded and calculated in memory, but can not be seen
  • Check Suppress: Component is not loaded nor caclulated (and of course can not be seen)
    → If it is not calculated, why are the attached constraints still un-suppressed then (occasionally worsening the resolve of the CSP [constraint satisfaction problem] for no reason)?

 

Current Behaviour:

When a component gets suppressed, all the attached constraints stay un-suppressed and Inventor fails quite frankly to solve some of these.

 

Expected behaviour:

When a component gets suppressed, all the attached constraints should be suppressed too (by default or at least by choice).

 

Note: If I wanted constraints of suppressed components still to be resolved and just wanted to get rid of the components appearance, I would just choose visibility for that, not suppress.

 

 

3 Comments
Josh_Hudson97
Advocate

This is something that was mentioned on the forums awhile back now, but I can't find an idea submission for it so here it is.

 

Add a toggle option that users can change to suppress constraints when suppressing parts in assemblies. Both have there advantages in certain situations so the option to have it switched on or off would be advantageous, with as far as I can tell now downsides?

 

In this instance I have an iLogic controlled assembly and it would be great if when suppressing that part the constraints also we suppressed without having to add those also to my code.

joshhudson8GUGT_0-1694082569211.png

Tags (5)
MKE_Howard
Collaborator

For the people who use Ilogic, I have this code found on an old post that do this idea:

Dim oAsm As AssemblyDocument = ThisApplication.ActiveDocument
Dim oAsmDef As AssemblyComponentDefinition = oAsm.ComponentDefinition
Dim oOccs As ComponentOccurrences = oAsmDef.Occurrences
Dim oAsmCons As AssemblyConstraints = oAsmDef.Constraints
For Each oAsmCon As AssemblyConstraint In oAsmCons
    Dim oOcc1 As ComponentOccurrence = oAsmCon.OccurrenceOne
    Dim oOcc2 As ComponentOccurrence = oAsmCon.OccurrenceTwo
    If oOcc1 IsNot Nothing AndAlso oOcc2 Is Nothing Then
        If oOcc1.Suppressed = True Then
            oAsmCon.Suppressed = True
        Else
            oAsmCon.Suppressed = False
        End If
    ElseIf oOcc1 Is Nothing AndAlso oOcc2 IsNot Nothing Then
        If oOcc2.Suppressed = True Then
            oAsmCon.Suppressed = True
        Else
            oAsmCon.Suppressed = False
        End If
    ElseIf oOcc1 IsNot Nothing AndAlso oOcc2 IsNot Nothing Then
        If oOcc1.Suppressed = True Or oOcc2.Suppressed = True Then
            oAsmCon.Suppressed = True
        Else
            oAsmCon.Suppressed = False
        End If
    End If
Next

 Feel free to update it or optimise it bc im not Ilogic expert. haha

Yijiang.Cai
Autodesk
Status changed to: Future Consideration

Many thanks for posting the idea to us, and tracked as [INVGEN-90953]

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea