Import 3d Model
import_3d_modelCopy a 3D model file into the project's .3dshapes library and get a portable ${KIPRJMOD} path to assign to footprints or components.
Instructions
Copy a 3D model file (.step/.stp/.wrl/.x3d/.iges) into the project's *.3dshapes library folder and return a portable ${KIPRJMOD}/... path. Feed the returned 'modelPath' straight into add_footprint_3d_model or add_component_3d_model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | No | Rename the copied file (source extension kept if omitted) | |
| modelPath | Yes | Path to the source 3D model file to import | |
| overwrite | No | Overwrite an existing destination file (default false) | |
| libraryDir | No | Target *.3dshapes directory (absolute, or relative to the project). Default: <project>/<project>.3dshapes | |
| projectPath | Yes | Path to the .kicad_pro file or the project directory (used to locate the .3dshapes folder and compute ${KIPRJMOD}) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |