catia_drawing_export_pdf
Export a CATIA drawing to vector PDF, verify page size matches sheet dimensions, and return path, bytes, and match status. Overwrites existing PDF.
Instructions
Export the drawing to a vector PDF (DrawingDocument.ExportData). Checks the file exists and, when PyMuPDF is installed, that the PDF page equals the sheet (mm). Returns JSON {path, bytes, page_mm, sheet_mm, page_matches_sheet}. Overwrites an existing file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "catia_drawing_export_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path ending in .pdf. | |
| drawing | No | Name of the CATDrawing document (default: the active document). |