fix(bom): use GetUniStringLibId() instead of str() for footprint in BOM export
str(module.GetFPID()) returns the Swig proxy representation like "<pcbnew.LIB_ID; proxy of ...>" instead of the actual footprint name. GetUniStringLibId() returns the proper "Library:Footprint" string.
This commit is contained in:
@@ -474,7 +474,7 @@ class ExportCommands:
|
|||||||
component = {
|
component = {
|
||||||
"reference": module.GetReference(),
|
"reference": module.GetReference(),
|
||||||
"value": module.GetValue(),
|
"value": module.GetValue(),
|
||||||
"footprint": str(module.GetFPID()),
|
"footprint": module.GetFPID().GetUniStringLibId(),
|
||||||
"layer": self.board.GetLayerName(module.GetLayer())
|
"layer": self.board.GetLayerName(module.GetLayer())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user