Host.ExportPdf¶
Ask HydroMan to export the production drawing of a manifold to a single PDF file. All production layouts are merged into one PDF; assembly layouts are excluded.
When is this called?
Returns ERROR with code NO_PROJECT_OPEN when no manifold is open, NO_OUTPUT_PATH when filePath is omitted and the manifold has never been saved, or EXPORT_FAILED when the export fails (for example, no production layout).
C# Usage¶
Request¶
| Field | Type | Required | Description |
|---|---|---|---|
projectPath |
string |
Project path. If omitted, uses the currently open manifold. | |
filePath |
string |
Output PDF path; the extension is always forced to .pdf. If omitted, the PDF is written next to the manifold file with the same base name. |
Response¶
| Field | Type | Required | Description |
|---|---|---|---|
filePath |
string |
✅ | Full path to the exported production drawing PDF. |
pageCount |
integer |
Number of production layouts in the PDF. |
JSON¶
The SDK serializes these JSON bodies for you.