Skip to content

Host.ExportDrawing

Ask HydroSym to export the current drawing to a file.

C# Usage

var result = Host.ExportDrawing(new HostExportDrawingRequest { /* ... */ });

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 .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.
pageCount integer Number of layouts in the schematic.

JSON

The SDK serializes these JSON bodies for you.

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

JSON Schemas: Request · Response