V9 Symbol Generator - how to specify the Unit names

Hi, I’m writing a Symbol Generator for the Altera Agilex 5 Family using the python Kicad_sym library. I’m quite successful, but I’m failing to add the unit names to the different units. So far I see e.g. UnitA to UnitL- But I didn’t find a way to change the unit names to more valuable information, like PWR, HPS…

new_symbol = KicadSymbol.new(symbolname+“-”+footprint[“Footprint”],libname)

I can add Pins, rect… all with the given unit, but how to provide the name of the unit?
new_symbol.rectangles.append(Rectangle(mil_to_mm(-symwidth+250),mil_to_mm(100),mil_to_mm(symwidth-250+extendsymwidth),mil_to_mm(-100*(pin_max+1)),stroke_width=mil_to_mm(10),unit=symnum))

please let me know how to add the unit name to the libraries.

Many thanks, Rolf

AFAIK, you can’t. The A, B, C… suffixes are fixed.
The best you can do is add the unit name as text within each unit.

Hi ML9104, I can change the Unit names in the Symbol Editor GUI, so is this feature missing in the Python interface?

Symbol Editor:
Edit / Set Unit display names

image

In the library the unit_name is mentioned directly below the symbol:
(symbol “A5EC008B-B23A_2_0”
(unit_name “IOB3AT”)