I’m trying to use the SymGen, but can’t seem to figure out how to create a symbol that has multiple units. I have modified the example as I wanted an import from CSV function added to it.
The insertion of all the pins I can see in the .lib, but when I open the symbol editor there is no Unit A, B, C, D. Just Unit A which has only the pins that Unit A should have. When I open the show pin table, all the rest of the pins for Units B-D are listed there, but I can’t access them.
I made the symbol to have 4 units and it just copied over pins in Unit A.
*Note I stay on the IRC channel often enough so if that’s easier you can talk to me there.
The dropdown is grey and Number of Units is 1 when I open “Library Symbol Properties”
To be noted maybe I’m using this incorrectly too. I am running the script, copying the definiton of the symbol, then pasting it to the .lib in use. I originally thought this would append to the .lib but it seems to wipe it and overwrite. So that’s how I’m approaching using the script and adding to my library.
Edit: For the record bobc, I changed deMorgan_idx = 1.
You should be able to use the import feature of kicad to get the symbol into a lib of your choosing instead of relying on a text editor. (in the symbol editor under file import or similar)
Also you should be able to drag and drop at least one image per post here on the forum which would make it easier to read the information you provide. Maybe also schare the source file that you give to symgen.
Thank you I didn’t catch that when I was reading the example. I set current_symbol.num_units = 4 and that worked. The pins for units B-D are all stacked on one location, but at least this is progress!
For the record, I haven’t figured out the fix to the multi unit symbol pin-stacking issue. The generator also ‘skips’ a space which I don’t understand either. I have the YPos moving at 254*i, where i is an int from 1 to 50.
For some reason every third pin moves YPos two grid points down instead of one. Unsure why this happens, could be my code.
Need to look into this, but now is not the time sorry.