Skip to content

Host.GetBom

Get the current BOM as HydroSym has it, built from the schematic.

C# Usage

var result = Host.GetBom();  // optional projectPath argument

Request

Field Type Required Description
projectPath string Project path. If omitted, uses the currently open project.

Response

Field Type Required Description
items array<BomItem> ✅ BOM items. Same schema as the plugin BomItem type.

JSON

The SDK serializes these JSON bodies for you.

{
  "projectPath": "C:\\Projects\\valve-assembly.hdf"
}
{
  "items": [{"position": 1, "articleCode": "HV-301", "description": "Test", "quantity": 1}]
}

JSON Schemas: Request · Response