Skip to content

Host.ExportBom

Ask HydroSym to export the current BOM to a file.

C# Usage

var result = Host.ExportBom(new HostExportBomRequest { /* ... */ });

Request

Field Type Required Description
projectPath string Project path. If omitted, uses the currently open project.
format string ✅ Must be "pdf". Other values raise INVALID_ARGUMENT.
outputPath string Full destination file path. If the path has no extension it is treated as a directory and the project base name with -BOM.pdf is used. If omitted, writes next to the project file. Missing folders are created.

Response

Field Type Required Description
filePath string ✅ Full path to the exported file.
itemCount integer Number of non-hose BOM rows. Hose rows appear in the PDF but are not counted.

JSON

The SDK serializes these JSON bodies for you.

{
  "projectPath": "C:\\Projects\\valve-assembly.hdf",
  "format": "pdf",
  "outputPath": "C:\\Temp\\bom.pdf"
}
{
  "filePath": "C:\\Projects\\valve-assembly.hdf",
  "itemCount": 1
}

JSON Schemas: Request · Response