make_drawing
Creates a 2D drawing of the active Inventor part or assembly with base and projected views, dimensions, and title block, then exports it as a PDF for shop-floor use.
Instructions
2D drawing of the active part or assembly (saved to disk) → PDF for the shop floor. A base view, projected views around it, overall dimensions on the base view (between its outermost straight edges — check them on assemblies), the model dimensions Inventor can retrieve, and the template's title block (filled from properties()). Read the PDF back to check the layout.
Args: pdf_path: Output .pdf. views: First is the base view (front/top/right/left/back/bottom); the rest are projected from it: top (placed below), right (beside), iso (shaded, half scale). template: Drawing template name (ISO, DIN, ANSI (mm) …) or a full .idw path. scale: 0 = largest standard scale that fits; or e.g. 0.2 for 1:5. flat: Sheet metal part: draw the flat pattern (one view). drawing_path: Also keep the drawing as .idw / .dwg (otherwise it is closed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flat | No | ||
| scale | No | ||
| views | No | front,top,right,iso | |
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| pdf_path | Yes | ||
| template | No | ISO | |
| drawing_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |