I am using iLOgic on Inv 2012 to try and close the active document using the following piece of code -
InventorVb.Application.activedocument.Close (True)
This close the document but brings up the following Error msg...
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Has anyone got a better piece of code that shuts down the active document but doesn't return the error? (I only want to shut down one document, not the application)
Look forward to any help you can offer.
Steve
thanks eelco,
The same issue still occurs. Maybe it has something to do with some of the other code im using. The basic premise is that i have a message box that if answered yes leaves the current document open, but if no, it closes the current document and opens a different one. The code does i as I want, other than this error.
Steve
Hi,
I don't know how the rest of your code looks like but maybe you trying to close the document from wich you fired the rule from. I believe that is not possible.
Eelco