Skip to content

Missing models when importing kicad_pcb with models using relative path to footprint library. #274

Description

@leoheck

Hi @easyw

I am importing a kicad_pcb, but some models are not being imported.

See:
Image

I have a custom lib called MyLib.
And, my footprints set 3d models with a relative path.

Right now, it seems this functionality is not implemented in KicadSteUpMod workbench yet.

My projects use local settings for custom libs which use these files inside the project to set libraries path (sym-lib-table and fp-lib-table), but this config can also be global in the system (user settings).

Here is where this functionality was mentioned recently. https://forum.kicad.info/t/how-to-have-a-3d-model-path-relative-to-a-custom-footprint-path/69943/4?u=leoheck

This is how these files look inside, and if the kicad_pcb does not have the whole path to the footprint and then to the 3d model, the path can be extracted from here:

➜ cat fp_lib_table
(fp_lib_table
  (lib (name "MyLib")(type "KiCad")(uri "${KIPRJMOD}/libs/MyLib/footprints/MyLib.pretty")(options "")(descr "MyLib footprints."))
)
➜ cat sym_lib_table
(sym_lib_table
  (lib (name "MyLib")(type "KiCad")(uri "${KIPRJMOD}/libs/MyLib/symbols/MyLib.kicad_symdir")(options "")(descr "MyLib symbols."))
)

It would be very nice if the workbench could load models that use relative paths.
Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions