Skip to content

Host.GetComponentList

Get a list of all components in the current schematic.

C# Usage

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

Request

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

Response

Field Type Required Description
components array<Component> ✅ List of all components.

JSON

The SDK serializes these JSON bodies for you.

{
  "projectPath": "C:\\Projects\\valve-assembly.hdf"
}
{
  "components": []
}

JSON Schemas: Request · Response