Skip to main content

ModelCenter APIs 2025 R2

disableIOConsole

Last update: 16.07.2025

public disableIOConsole(discardOutput: Boolean)

Prevents a PHXIOConsole from ever being created and optionally redirects err and out to the bit bucket. This is a convenience method for headless apps (and specifically JNI apps) which are not using the console.

After calling this method, feel free to re-redirect the console or error stream elsewhere, secure in the knowledge that ModelCenter.jar will not attempt to steal them again and pipe them to PHXIOConsole.

Parameters

discardOutput whether to redirect out and err to the bit bucket; if false, they are untouched

Throws

IllegalStateException if getDummyFrame has already been called and the IO console created

Connect with Ansys