API v1¶
Current surface for HydroSym 2026 and HydroMan 2026 and later. Field schemas: HydroSym API Reference · HydroMan API Reference.
Plugin methods (host → plugin)¶
Lifecycle (both hosts): GetInfo, Initialize, Finalize.
Menu & UI (both hosts): OnMenuAction, GetMenuItemState, ShowSettings.
File hooks (both hosts, when advertised): BeforeFileOpen, BeforeFileClose, and SetProjectVariables on confirmed close.
HydroSym only: GetProjectVariables (title-block keys on open and before CLI PDF export), GetFileStatus (called on open if advertised; result unused). Plugin SaveFile is in the schema and is not invoked in API v1.
HydroMan only: SetProjectVariables arrives with an empty variables map. No plugin GetProjectVariables, GetFileStatus, or SaveFile.
Host methods (plugin → host)¶
HydroSym: GetCurrentProject, GetProjectVariables, GetComponentList, GetIBorders, GetBom, ExportDrawing, ExportBom (format "pdf" only), OpenProject, NewProject, SaveProjectAs, SaveFile, SetProjectVariables, ShowMessage, SetStatusBar.
HydroMan: GetCurrentProject, GetProjectVariables, OpenProject, NewProject, SaveProjectAs, SaveFile, SetProjectVariables, ExportPdf, ShowMessage, SetStatusBar. No BOM, component, or i-border access.
Known limitations in v1¶
MenuItem.iconand thetoolbar/context:iborderlocations are in the schema but not implemented.PluginContextcarriesprojectPathonly.projectIdand the selection fields are never sent.GetCurrentProject.projectIdis always empty.- HydroSym
Component.idis the article code, andBomItem.unit,level,parentPosition, andpropertiesare not populated. Hose rows are excluded fromGetComponentListandGetBom. Host.SetStatusBar.durationis ignored.- The host writes no plugin log file.
Transport: in-process native DLL, stdcall, UTF-16 JSON strings.