import_step_file
Import a STEP CAD file and convert it for 3D printing mesh workflows, exporting STL for single solids or color-preserving 3MF for assemblies.
Instructions
Import a STEP (.step/.stp) CAD file and convert it for Kiln's mesh pipeline.
Converts STEP files using whichever backend is available (the
OCCT kernel that ``kiln install-step-backend`` sets up, or an
existing FreeCAD / Gmsh / CadQuery install).
**The output format follows what the file carries.** A plain
single-solid STEP becomes an STL. A STEP with part colours or
multiple bodies becomes ONE 3MF that keeps each part's colour,
name, and position — so a coloured CAD assembly arrives ready
for a multi-material print instead of flattened grey. Pass
``output_format="stl"`` or ``"3mf"`` to force either.
Use ``check_step_support`` first to verify that a conversion
backend is installed. After conversion, use ``diagnose_mesh``
or ``analyze_mesh_geometry`` to validate the output.
If this returns ``code="NO_BACKEND"``, read the ``remedy`` field
rather than guessing: when ``remedy.actionable_by_caller`` is
True, tell the user to run ``remedy.command`` (``kiln
install-step-backend``) — one command and it works. When it is
False the caller is on a hosted server and has nothing to
install; say so plainly and suggest ``report_issue``. Never
hand a hosted user an install instruction.
Args:
brief_id: The saved goal's id from ``design_session``; pass it so
this make joins the goal (recorded against it; Kiln Pro checks the
result against it). Empty when there is no goal.
file_path: Path to the STEP/STP file.
output_format: ``"auto"`` (default — 3MF when colour or
multiple bodies are present, else STL), ``"stl"``, or
``"3mf"``.
merge_bodies: STL output only: if True, merge all bodies
into one STL; if False, export each body separately.
(3MF keeps bodies as separate named objects either way.)
output_dir: Directory for output files. Defaults to
the STEP file's parent directory.INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
MAKE DOORS: design_session, Kiln's front door for making an object, is not installed here (signed in to Kiln it runs on Kiln's servers). On this install compile_scad IS the make → preview → iterate loop: make it, show the preview, iterate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief_id | No | Default: "". | |
| file_path | Yes | ||
| output_dir | No | ||
| merge_bodies | No | Default: true. | |
| output_format | No | Default: "auto". |