Skip to main content

ModelCenter APIs 2025 R1

setRunOnlyMode

Last update: 16.07.2025

abstract fun setRunOnlyMode(shouldBeInRunOnly: Boolean)

Sets the status of ModelCenter being in Run-Only Mode to the specified value.

Note: This function can only be called if it is the first function to be called on a new ModelCenter object; otherwise, it will throw an exception. This is to ensure that the correct ModelCenter license is checked out.

Parameters

shouldBeInRunOnly true if ModelCenter should be in Run-Only Mode; otherwise, false

Connect with Ansys