import_parts
Import SVG, DXF, or LightBurn files into a part library for nesting. Returns part IDs, areas, bounds, kerf, and warnings for use in nest requests.
Instructions
Import SVG/DXF outlines or one LightBurn lbrn2/lbrn project into a part library (mm). LightBurn groups stay rigid and original artwork/settings are retained for lbrn2 export. Writes the library to a file and returns part ids, areas, bounds, layer kerf and import warnings. Use the ids in nest requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | SVG/DXF files or one .lbrn/.lbrn2 project, inside the workspace. | |
| colors | No | DXF ACI numbers as strings (e.g. "7") or RGB colours (e.g. "#000000"). | |
| layers | No | Cut layer names; omit to prefer cut/outline/profile, then all closed contours. | |
| dxf_unit_mm | No | Millimetres per DXF unit when `$INSUNITS` is missing (default 1). | |
| library_path | No | Where to write the part library JSON; a new file under `nestbolt/` by default. | |
| sheet_layers | No | Stock-outline layers offered separately from parts (defaults to SHEET). | |
| tolerance_mm | No | Maximum distance between exact curves and nesting polygons, in mm (default 0.005). | |
| close_gaps_mm | No | Explicitly close gaps up to this many mm (off by default, maximum 1). | |
| svg_user_unit_mm | No | Millimetres per SVG user unit when a document has no absolute size (default 25.4/96). |