create_drawing
Creates a 2D Inventor drawing from the active part or assembly and exports it to PDF with views, dimensions, title block, parts list, balloons, sections, details, and flat patterns.
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()). Assemblies: a parts list and balloons. Any model: a section and a detail view. Flat patterns: direction, angle and radius on every bend line, and a table of the bends. An annotation that fails is named in the answer; the rest of the drawing is still made. 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).
parts_list: Assembly: the parts list (first-level components: item, quantity, part
number, description — fill those with edit_properties) on the title block.
balloons: Assembly: an item balloon for each different first-level component, on
the iso view if there is one, else on the base view.
section: "vertical" or "horizontal": a full section A-A through the middle of the
base view; "vertical:12.5" cuts 12.5 mm (model) right of the middle,
"horizontal:-8" 8 mm below it. A vertical section takes the place of the
"right" view and a horizontal one of "top" — leave that view out of views.
detail: [x, y, z, radius] in model mm: an enlarged detail B of the base view around
that point (a small hole pattern, a corner relief).
bend_notes: With flat: the bend notes and the bend table (default on).
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": {
"pdf_path": "<pdf_path>"
},
"name": "create_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flat | No | ||
| scale | No | ||
| views | No | front,top,right,iso | |
| detail | No | ||
| section | No | ||
| balloons | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| pdf_path | Yes | ||
| template | No | ISO | |
| bend_notes | No | ||
| parts_list | No | ||
| drawing_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |