fix: Update schematic format to KiCAD 9 and fix invalid UUIDs (#37)
- Update schematic version from 20230121 (KiCAD 7) to 20240101 (KiCAD 9) - Replace invalid all-zeros UUIDs in template files with valid UUIDs - Add post-copy UUID regeneration to ensure each project gets unique UUID - Add UTF-8 encoding and Unix line endings for cross-platform compatibility Fixes the root cause where templates were copied with invalid UUIDs and outdated version format, causing KiCAD 9.0.x to reject the schematic files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
(kicad_sch (version 20250114) (generator "KiCAD-MCP-Server")
|
||||
(kicad_sch (version 20240101) (generator "KiCAD-MCP-Server")
|
||||
|
||||
(uuid a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d)
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
)
|
||||
)
|
||||
|
||||
(symbol (lib_id "Device:R") (at -10000 -10000 0) (unit 1)
|
||||
(symbol (lib_id "Device:R") (at -100 -100 0) (unit 1)
|
||||
(in_bom no) (on_board no) (dnp yes)
|
||||
(uuid 00000000-0000-0000-0000-000000000001)
|
||||
(property "Reference" "_TEMPLATE_R" (at -100 -102.54 0)
|
||||
@@ -143,14 +143,14 @@
|
||||
(property "Footprint" "" (at -100 -100 90)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Datasheet" "~" (at -10000 -10000 0)
|
||||
(property "Datasheet" "~" (at -100 -100 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(pin "1" (uuid 00000000-0000-0000-0000-000000000010))
|
||||
(pin "2" (uuid 00000000-0000-0000-0000-000000000011))
|
||||
)
|
||||
|
||||
(symbol (lib_id "Device:C") (at -10000 -10000 0) (unit 1)
|
||||
(symbol (lib_id "Device:C") (at -100 -110 0) (unit 1)
|
||||
(in_bom no) (on_board no) (dnp yes)
|
||||
(uuid 00000000-0000-0000-0000-000000000002)
|
||||
(property "Reference" "_TEMPLATE_C" (at -100 -107.46 0)
|
||||
@@ -159,17 +159,17 @@
|
||||
(property "Value" "C_TEMPLATE" (at -100 -112.54 0)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
)
|
||||
(property "Footprint" "" (at -10000 -10000 0)
|
||||
(property "Footprint" "" (at -100 -110 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Datasheet" "~" (at -10000 -10000 0)
|
||||
(property "Datasheet" "~" (at -100 -110 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(pin "1" (uuid 00000000-0000-0000-0000-000000000020))
|
||||
(pin "2" (uuid 00000000-0000-0000-0000-000000000021))
|
||||
)
|
||||
|
||||
(symbol (lib_id "Device:LED") (at -10000 -10000 0) (unit 1)
|
||||
(symbol (lib_id "Device:LED") (at -100 -120 0) (unit 1)
|
||||
(in_bom no) (on_board no) (dnp yes)
|
||||
(uuid 00000000-0000-0000-0000-000000000003)
|
||||
(property "Reference" "_TEMPLATE_D" (at -100 -117.46 0)
|
||||
@@ -178,10 +178,10 @@
|
||||
(property "Value" "LED_TEMPLATE" (at -100 -122.54 0)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
)
|
||||
(property "Footprint" "" (at -10000 -10000 0)
|
||||
(property "Footprint" "" (at -100 -120 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Datasheet" "~" (at -10000 -10000 0)
|
||||
(property "Datasheet" "~" (at -100 -120 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(pin "1" (uuid 00000000-0000-0000-0000-000000000030))
|
||||
|
||||
Reference in New Issue
Block a user