How to update my complete subassembly (other than ctrl Q)?

hello I have a main assembly in which I have sub-assemblies and in my sub-assemblies I have equations, when I do a Ctrl Q in my main assembly it happens that my equations of my sub-assembly do not update with you a solution to propose to me to force Solidworks to update my sub-assemblies more intensely from my main assembly?

It seems to me that the equations are solved sequentially.

If you have a term used in one equation that is used in another equation, you have to do CTRL Q several times for everything to update.

The order of the equations is therefore of great importance

2 Likes

Hello

Apart from the CTRL-Q there is the two-tone light at the top in the Solidworks bar.

Have you checked the "automatic rebuild" box? 

When you right-click on the equation folder, then equation management and bottom left!

1 Like

Hello 

For that I use a macro:

Sub main()
    Dim swApp As SldWorks.SldWorks
    Dim swModel As SldWorks.ModelDoc2
    Set swApp = CreateObject("SldWorks.Application")
    Set swModel = swApp.ActiveDoc
    swModel.ForceRebuild3 (False)
End Sub

For equations, you sometimes have to copy the last line several times:
"swModel.ForceRebuild3 (False)"

the most I needed is to copy it 3x It does the job but suddenly the time of regen is multiplied by the same amount.

@+