- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @tmathieson. This tip is along the same train of thought as what @Curtis_Waguespack was talking about.
Here are a couple lines of Inventor API code that you might find useful in scenarios like that.
When you open a document invisibly (Visibility set to False), (assuming it was not already opened in the background by the assembly before that) it is considered a hidden document, and you can use the ReleaseReference method to release the reference to it that you created by opening it. However it may leave a remnant in session memory, so you can use the Documents.CloseAll(True) method to clear any/all documents that are no longer being referenced from Inventor's session memory. Just a couple more tools for the toolbox.
Document.ReleaseReference - (Link1, Link2)
ThisApplication.Documents.CloseAll(True) - (Link1, Link2)
Wesley Crihfield
(Not an Autodesk Employee)