catia_drawing_check
Exports CATIA drawing to PDF and compares it with the 3D model to validate orthographic views, circle diameters, centers, and hole pitches, returning JSON verification results.
Instructions
CLOSED-LOOP CHECK: export the drawing to PDF, read it back and compare it with the 3D model. For every orthographic view created by add_view: circles (diameters within 0.02 mm, centres within 0.05 mm, hole pitches), the four sides of the projected outline, the view size on paper vs the 3D bounding box x scale. The 3D side is read from source (catia_list_faces cylinders + catia_get_bounding_box of the active body) unless expected is given. Diameter/radius dimensions are cross-checked against the circles found in the PDF. Limits: a blind hole is only visible from its open side (list the views that show it in views); circles under 2 mm are text-sized and ignored. Returns JSON with ok and per-view details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Existing PDF of this drawing (default: export a temporary one). | ||
| views | No | View names to check (default: all). | |
| source | No | ||
| drawing | No | Name of the CATDrawing document (default: the active document). | |
| expected | No | Override of the 3D side: {view: {circles: [{cx, cy, d}], box: [umin, wmin, umax, wmax]}} in view mm. | |
| centre_tol_mm | No | ||
| diameter_tol_mm | No | ||
| require_circles | No | Fail unless at least this many circles were expected and matched in total (a check that expects nothing proves nothing). | |
| fail_on_mismatch | No | Raise an error (exit code 1 in the scenario runner) when anything does not match. |