Home/ Reference/ Events

app.EventsEnabled

Global event switch. Turn it off during batch runs to cut the stutter from callbacks; turn it back on afterwards.

Signature

app.EventsEnabled

Notes

Global event switch. Turn it off during batch runs to cut the stutter from callbacks; turn it back on afterwards.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
print("Event switch was: ", app.EventsEnabled)

app.EventsEnabled = False                           # off during batch work
# ... a pile of edits ...
app.EventsEnabled = True                            # always turn it back on
print("Event switch restored: ", app.EventsEnabled)

About this section: Events

Events — waiting for user interaction.

Other entries in this section