Host.ExportDrawing¶
Ask HydroSym to export the current drawing to a file.
C# Usage¶
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.