Add Footprint 3d Model
add_footprint_3d_modelAttach or replace a 3D model on a KiCAD footprint file to display components in the 3D viewer. Supports STEP/STP/WRL formats and KiCAD path variables.
Instructions
Attach (or replace) a 3D model — .step/.stp/.wrl — to a .kicad_mod footprint file. KiCAD path variables like ${KIPRJMOD} or ${KICAD10_3DMODEL_DIR} are supported. Use this after create_footprint so the part shows up in the 3D viewer (Alt+3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Model scale factor (default 1,1,1) | |
| offset | No | Model offset in mm (default 0,0,0) | |
| rotate | No | Model rotation in degrees (default 0,0,0) | |
| replace | No | Replace an existing model with the same filename (default true) | |
| modelPath | Yes | Path to the 3D model file. Prefer ${KIPRJMOD}/MyProj.3dshapes/MyPart.step for portability. | |
| footprintPath | Yes | Full path to the .kicad_mod file, e.g. C:/MyLib.pretty/MyPart.kicad_mod |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |