Skip to content

API Reference

Plugin Methods

Methods HydroMan calls on your plugin DLL, grouped by category.

Method Category Capability Description
GetInfo Lifecycle None Returns plugin metadata. Called immediately after loading to verify compatibility.
Initialize Lifecycle None Establish connections and load configuration.
Finalize Lifecycle None Close connections and release resources.
BeforeFileClose Lifecycle beforeFileClose Called when the user closes a project, before the native save prompt. The plugin may veto the close.
BeforeFileOpen Lifecycle beforeFileOpen Called after a project file is loaded, before the user works with it. The plugin may veto the open or ask the host to drop variables.
OnMenuAction Menu & UI None Called when the user clicks a plugin menu item.
GetMenuItemState Menu & UI None Query dynamic enabled/disabled/checked state of menu items.
ShowSettings Menu & UI None Show the plugin's settings dialog.
SetProjectVariables Project Metadata setProjectVariables Push project metadata to the external system.

Host API

Methods your plugin calls back into HydroMan via Host.

Method Category Description
Host.ShowMessage UI Display a modal message box with an OK button.
Host.SetStatusBar UI Update the host application's status bar with a plugin message.
Host.GetCurrentProject Project Information Get information about the currently open manifold.
Host.GetProjectVariables Project Information Read the project variables as HydroMan currently has them.
Host.OpenProject Project Actions Ask HydroMan to open a manifold file.
Host.NewProject Project Actions Create a new manifold the same way File > New does, then save it to filePath with no Save As dialog.
Host.SaveProjectAs Project Actions Save the currently open manifold to filePath with no Save As dialog (in-memory content, including unsaved edits).
Host.SaveFile Project Actions Ask HydroMan to save a manifold to its current path.
Host.SetProjectVariables Project Actions Push variables into HydroMan's current manifold Project Variables (UserVarList).
Host.ExportPdf Export Ask HydroMan to export the production drawing of a manifold to a single PDF file. All production layouts are merged into one PDF; assembly layouts are excluded.