Export a 2D drawing
export_2dFlatten the model to 2D as DXF or SVG, for a laser, vinyl cutter or CNC. The default "silhouette" projects it onto the view plane; "section" cuts through it — how to check an internal wall or bore no render shows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| z | No | Section position, mm, on the view axis (z, y or x). | |
| cut | No | SVG: hairline laser cut lines, no fill. | |
| arcs | No | Default true: facets become true circles and arcs. | |
| mode | No | Default "silhouette" (footprint). "section" needs `z`. | |
| scad | No | OpenSCAD source, as an alternative to `nodes` (supply exactly one). Interpreted by the same engine the editor’s .scad import uses; BOSL2/MCAD includes resolve. minkowski() and resize() are not supported here — use hull() or offset(). | |
| view | No | Default "top"; "front" from −y, "right" from +x. | |
| nodes | No | Parametric node tree. mm, Z-up, rotations in DEGREES (a rotation.* binding: radians). Read owlcad://schema/primitives for every primitive, modifier and generator and its parameter ranges (unknown params are dropped silently), and owlcad://schema/conventions for the placement arithmetic, which is where most models go wrong. | |
| format | No | DXF for CAD/CAM and lasers, SVG for cutters and the web. | dxf |
| deliver | No | How to return the bytes. `inline` (default) is base64 in the result, capped because it lands in your context. `url` writes the file to your account and returns a link good for 24 h instead, which lifts those caps — use it for anything large, or to hand a person a file. | inline |
| projectId | No | Id of one of your saved projects, as an alternative to `nodes`/`scad` (supply exactly one). | |
| dxfVersion | No | DXF flavour (default R2000; use R12 for older controllers). | |
| smoothness | No | Curve quality for shapes that left their segment count automatic. Defaults to "standard", which is the editor default — pass "high" to match a project authored at high smoothness, "draft" for a cheaper check. |