From c7d6d0126f0b1032576215fb4332d2694edb876b Mon Sep 17 00:00:00 2001 From: Roman PASSLER Date: Sun, 1 Mar 2026 18:37:35 +0100 Subject: [PATCH] fix(bom): use GetUniStringLibId() instead of str() for footprint in BOM export str(module.GetFPID()) returns the Swig proxy representation like "" instead of the actual footprint name. GetUniStringLibId() returns the proper "Library:Footprint" string. --- python/commands/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/commands/export.py b/python/commands/export.py index e0749ed..d773431 100644 --- a/python/commands/export.py +++ b/python/commands/export.py @@ -474,7 +474,7 @@ class ExportCommands: component = { "reference": module.GetReference(), "value": module.GetValue(), - "footprint": str(module.GetFPID()), + "footprint": module.GetFPID().GetUniStringLibId(), "layer": self.board.GetLayerName(module.GetLayer()) }