Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ E3D Design

Eager addins and lazy addins

  • Last UpdatedNov 27, 2026
  • 2 minute read

Eager addin: Starts during module start-up, synchronously, before the user can interact. Use for functionality that must be present the instant the window appears. For example,core explorers, always-visible ribbon tabs, status-bar contributions, current-element handling, and anything that addins or Programmable Macro Language (PML) depend on at start-up.

Lazy addin: Its Start() is deferred until the eager addins have started and the application is idle (one addin per idle tick), or until the addin is first used programmatically. Use for functionality the user reaches later. For example, dialog-only features, reporting, import or export, and occasional tools.

Criteria for choosing eager or lazy addins

Make an addin lazy when all of the following options apply:

  • It contributes no User Interface (UI) that must be visible on the very first frame (or its UI can appear a moment later).

  • Nothing in the eager start-up path depends on it. For example, other eager addins, start-up PML.

  • Its command(s) or controls, if any, tolerate being registered after the User Interface Customization or ribbon has loaded. Common Application Framework handles this through deferred registration. For more information, see Contributing User Interface from a lazy addin.

Keep an addin eager when any of the following options apply:

  • It owns a ribbon tab, toolbar, or status element expected to be present immediately.

  • Other addins, or start-up scripts, resolve it or its services during start-up.

  • It registers global handlers that must be live from the first interaction. For example, current element, selection).

  • A lazy addin’s window is placed where the user last left it, but it is not re-shown by the layout restore. Do not rely on WindowLayoutLoaded in a lazy addin: it may already have fired.

  • It needs to know when the window layout has loaded (WindowLayoutLoaded).

Window layout. A lazy addin’s window is placed where the user last left it, but it is not re-shown by the layout restore. WindowLayoutLoaded is raised once and is not replayed, so a lazy addin that subscribes to it in Start() may never receive it.

Interaction with lazy evaluation. The two are complementary: a lazy addin defers when Start runs; lazy evaluation defers work inside Start. Even lazy addins must keep Start() under the one second target and defer heavy per-window work until the window first appears. For more information, see Tracing and optimization.

On-demand start. A lazy addin is also started the first time code requests it through AddinManager.GetInjectedAddin, GetInterfaceAddin or their teletype equivalents, so PML or .NET code that looks an addin up by name transparently triggers its start.