I have a program that builds an assembly and saves the assembly to a file location, and then closes all the open documents, and starts over building another assembly. Once the program built 152 assemblies, the memory usage in SolidWorks was at 8 GB. I guess that even though the documents are all being closed, SolidWorks is still keeping a cache or keeping all the files stored in memory. Is there a way I can clear the memory in SolidWorks at the end of my loop before it starts the next assembly so that the memory level doesn't get critical? I am using SolidWorks 2012 Professional and the code is written in vb.net with visual studio express 2012. Thank you.