VBNet code required for closing 'Open Documents in Session'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
Using VB.Net 2010 I am able to create/copy a new 'Standard' Project (silent operation).
My Standard Project has some sub-assemblies and parts. In the new 'Standard' Project some sub-assemblies are replaced with the new sub-assemblies using silent operation. The new sub-assemblies are also created/copied with VB.Net. When the replacements are done Inventor opens the new 'Standard' Project. All works fine no challenges here.
The challenge is that when I close the new 'Standard' Project there are still 'Open Documents in Session' and therefore I am unable to start the program again unless I close and restart Inventor. My guess is that I am not cleaning up Inventor's memory.
Can someone please point me in the right direction.
Many thanks in advance.