jashizawa
Aerospace
- Sep 2, 2005
- 7
I developed a little tool in Excel to do some load combining in FEMAP via its OLE/COM functionality. The tool operates fine, but there is one problem that I seem unable to catch. In the VBA code I create an object (FEMAP application) and thereafter I call a function femap.feFileWriteNastran which generates the Nastran DAT file for analysis. However, during this file export process an error is encountered as a result of a material which is purposely left as is. The result of the error is a message box that basically informs the user that an error was encountered in the writing process (this upon completion of writing the DAT file). The problem is that the message box essentially terminates or stops the execution of the rest of the code until the user clicks "Ok" on the message box. Otherwise, another message box in Excel appears stating that the applications is "waiting for another application to complete an OLE action".
I've tried several approaches to remedy this problem, but I have been unable to catch this error or resolve it any way. If anyone has any solutions or ideas to resolve this, it would be much appreciated
I've tried several approaches to remedy this problem, but I have been unable to catch this error or resolve it any way. If anyone has any solutions or ideas to resolve this, it would be much appreciated