HotDocs API must not be used during a plug-in's initialization. Plug-ins must wait until HotDocs is itself fully initialized (e.g. after all the plugins have loaded) before calling its APIs, or it risks leaving HotDocs running (hidden) after the user closes it.
This function is called when HotDocs starts up and add-in is loaded.
When HotDocs calls this function, it has not completely loaded its COM DLLs, which means you cannot call HotDocs COM interfaces in this function. Instead, you can call those interfaces in LibraryInitialized, which HotDocs calls after they are made available.
void Initialize()
The following Visual C# example implements the Initialize function.
public void Initialize() { }