handleman
Automotive
- Jan 7, 2005
- 3,411
Code:
Sub main()
Application.SldWorks.ActiveDoc.ForceRebuild3 (False)
End Sub
I think this is the smallest macro I've ever written. Depending on the assembly, it can also take very long to run. Its function is that it does a Ctrl-Q type forced rebuild on the active document and all referenced documents, either subassemblies or parts. Ctrl-Q only force-rebuilds the top level current document. This code doesn't rebuild the parent of a derived/mirrored part, though, unless of course the parent is also in the assembly. Anyway, might come in handy sometime.