by jasper » 11 May 2017, 08:54
In CAPE-OPEN one should not use message boxes during unit operation calculation.
Having said that (as the same applies for the edit dialog), normally a message box or any modal dialog appears on top naturally. I suppose you are running in AspenPlus? In this case the actual simulator is not the same executable as the front-end application (apmain.exe, apwin.exe). To get a dialog launched from apmain.exe on top of apwin.exe you will have to apply some tricks, which go beyond the scope of the Matlab unit operation.
Can you not use the message logging system instead?
If you need a response (e.g. yes,no) an option perhaps is to use a boolean input parameter.