diff --git a/python/commands/wire_manager.py b/python/commands/wire_manager.py index 20c3043..bcbc257 100644 --- a/python/commands/wire_manager.py +++ b/python/commands/wire_manager.py @@ -37,6 +37,8 @@ _SYM_LIB_SYMBOLS = Symbol("lib_symbols") _SYM_LIB_ID = Symbol("lib_id") _SYM_MIRROR = Symbol("mirror") _SYM_PIN = Symbol("pin") +_SYM_SYMBOL = Symbol("symbol") +_SYM_UNIT = Symbol("unit") _IU_PER_MM = 10000 @@ -127,6 +129,11 @@ def _make_sheet_pin_text( class WireManager: """Manage wires in KiCad schematics using S-expression manipulation""" + # Regex to parse sub-unit names like "LM324_2_1" → (base="LM324", unit=2, style=1) + # The sub-unit suffix is __