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