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…
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.
Thanks for the link, I added a comment to the other threat.
I guess it might be very easy to add this unit name topic into the python interface.
I just run into another issue on footprint properties - I did not find any way to get e.g. the datasheet added to a footprint. Will have a further look into the forum…
This is probably not an option in KiCad. The Units become a part of the RefDes, and these can only be limited number of suffixes. See: Schematic Editor / File / Schematic Setup / General / Formatting / Annotations / Symbol unit notation
However, the scheenshot you posted has the title: Set Unit Display Name. To me that suggests this is a string that is stored in a separate entity, and not the unit “name” itself.
Euhm no.
Quite a lot of KiCad’s symbols are already generated by scripts, but these are not installed with KiCad. But you can find them on gitlab.
Yes, I only want to change the Unit Display name - sorry not precise enough…
I will see, if I can find any symbol generator on gitlab… I had a look into other FPGA Libraries and they also have just the UnitA - UnitX names in the symbols…
You wouldn’t have been able to display the Unit Display Name in the schematic anyway. As investigation in the other topic showed it’s only for the dropdowns, at the moment anyway.