Hi @ltomuta -San.
If you want to check in the middle of some process, you can check if ToolbarControl is displayed here.

# Fusion360API Python script
import traceback
import adsk.core as core
def run(context):
ui: core.UserInterface = None
try:
app: core.Application = core.Application.get()
ui = app.userInterface
print(is_cam_simulation_working())
except:
if ui:
ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
def is_cam_simulation_working() -> bool:
app: core.Application = core.Application.get()
ui: core.UserInterface = app.userInterface
panels: core.ToolbarPanels = ui.allToolbarPanels.itemById(
"SimulationFinishPanel"
)
controlLst = filter(
lambda c: c.id == "SimulationStop", panels.controls
)
return list(controlLst)[0].isVisible