Skip to main content

ModelCenter APIs 2026 R1 SP03

setRunOnlyMode

Last update: 30.07.2026

public 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