fix: register sync_schematic_to_board + snapshot_project as MCP tools; auto-save board after SWIG mutations; boardPath reload in place_component; add_schematic_connection warns about connect_passthrough; via.GetWidth(F_Cu) for KiCAD 9.0

This commit is contained in:
Tom
2026-03-07 11:27:41 +01:00
parent 0f1bfa3eff
commit 8e4e3176c2
4 changed files with 91 additions and 4 deletions

View File

@@ -367,7 +367,7 @@ class RoutingCommands:
"y": position["y"],
"unit": position["unit"],
},
"size": via.GetWidth() / 1000000,
"size": via.GetWidth(pcbnew.F_Cu) / 1000000,
"drill": via.GetDrill() / 1000000,
"from_layer": from_layer,
"to_layer": to_layer,
@@ -950,7 +950,7 @@ class RoutingCommands:
# Create new via
new_via = pcbnew.PCB_VIA(self.board)
new_via.SetPosition(pcbnew.VECTOR2I(pos.x + offset_x, pos.y + offset_y))
new_via.SetWidth(via.GetWidth())
new_via.SetWidth(via.GetWidth(pcbnew.F_Cu))
new_via.SetDrill(via.GetDrillValue())
new_via.SetViaType(via.GetViaType())