8.0.7 Struggling with symbol pin alignment to grid

Ive just installed 8.0.7 and I am starting to pull my hair out when creating new symbols. Every pin I am placing is off grid, sometimes only just, meaning that when I place them in the schematic I am unable to make many connections because wires just dont line up. Help!

How can I make KiCad snap pins properly to my chosen grid?

Lets take the first example. I have gone to place a pin. My crosshair is aligned to the grid, but the mouse cursor itself is off to the top left (it doesnt appear in the screenshot unfortunately). Instead of the pin being placed at the crosshair, it is placed off grid at the mouse cursor instead.

Next, after placing the pin, I press the Down arrow key to place another pin below. In the properties window that appears, the pin is said to be at position x 1600 y 400 - incidentally at the coordinates where I had intended to place the first pin above. I press enter to insert the pin, and enter again to place it. This time the pin appears to place at the crosshair which is also where the cursor is in this instance due to using the arrow keys to move around.

I repeat the above process again to add a 3rd pin. I press the down arrow key. I press enter to add a pin, this time said to be at x 1600 y 500 according to the properties window. I press enter twice again.

This results in the following pin layout:

But if I now go back and edit the 3rd pin I placed, the x and y coordinates are just ever so slightly off grid:

Its the same story with the second pin where it said it was being placed on grid, but it too is ever so slightly off grid.

What am I doing wrong here, or is 8.0.7 buggy in some way? Ive had similar issues like this in the past, but not on this scale where every single pin I place is ending up off grid in some way. It is driving me nuts.

Thanks

Not sure but did notice there are no pin numbers in the screen shots, but I’ve never had this issue with 8.0.7
:mouse:


Did you use the context (or other) menu to set the grid in the symbol editor?

1 Like

Hi yes, the grid is set to 100mils.

Thanks!

Surely not adding the pin number when placing a pin wouldnt cause such behaviour?

But as I test I tried adding some pins and gave one of them a number and it still ended up off grid even though initially it gave positions that were on grid.

Thanks

image
That is very strange. I do not have this issue.

@tomstorey

Check: Preferences → Symbol Editor → Display Options → Grid Display → Snap to Grid.
Make sure this is set to “Always” when placing Pins.

Hi,

This is already set :pensive:

At this point I am tempted to try a reboot of my machine. I have restarted KiCad a couple of times to no avail, but maybe something else silly is going on.

Thanks

Why doesn’t your dialog box show the choice between accelerated versus fallback graphics?

Just looking for anything fishy. I am running 8.07

image

Maybe because he’s running on MacOS?
My settings don’t show it on that pane, either - it’s under Common.

Yeah it looks like as per 3Dogs’ suggestion my graphics options are under Common. Heres what Ive got.

I tried all three options prior to a reboot with no change in behaviour, and after a reboot I also still have the same behaviour.

Thanks

Maybe your fallback graphics fell off the cliff…

I wonder whether you could post a symbol library file that some of us could try.

Or try working with something here and see if anything changes:

Bobs_Connector_Library.kicad_sym (36.7 KB)

Just don’t send the library back to me after you are done!!! :frowning:

One surprising thing: The grid units in the symbol editor are in inches. (Of course there is no real scale.) But when viewing my symbol file with a text editor, I do not see pin positions such as 0.2 for example. The position numbers are all like inch dimensions which have been converted to metric.

Excerpt here:
(pin bidirectional line
(at 3.81 6.35 180)
(length 1.27)
(name “~”
(effects
(font
(size 0.762 0.762)
)
)
)
(number “2”
(effects
(font
(size 0.762 0.762)

Attempting the same basic procedure to add a bunch of pins inside your library did the same thing.

Might be time for me to file a bug, this is just too strange!

Not obviously related. But I experienced a bug in which footprints assigned in the schematic editor tended to revert to the footprints specified in the symbol library.

I kept a bunch of backup project folders and could see where a bunch of footprints were correct in an older folder but changed to incorrect in a newer one.

Like your situation, seemed to be a bug with KiCad in my computer and others could not reproduce it. I had work to do, so I dodged the problem by making new symbols which call out the footprints I needed.

For example I now have two resistor symbols; one for 0603 and another for 1206.

This all happened in 8.XX and never before.

First up, I can’t reproduce your problem. Whether I create or move pins they snap to the grid.

One thing I noticed is that your pin coordinates are way way off the origin of the symbol sheet. Here’s my screenshot showing that my pin coordinates are at multiples of 100 mil (my grid is 50 mil, the default), whereas yours are up in the hundreds and thousands. You really should construct symbols around the origin. Maybe you tickled a very rare bug.

And incidentally why do you need to construct a BUS symbol? Buses are “built-in” in KiCad.

@tomstorey

Next question:

Where is your grid? I cannot see grid lines or dots on your opening examples anywhere. I even went to the trouble of cleaning my screen. :open_mouth:

1 Like

The grid is there, its just very faint. It might be made worse by any compression this forum applies to images. :slight_smile:

Hey. Its not up in the hundreds of thousands, just the low thousands, which would be in the low tens of grid positions. For this symbol (and for all symbols I create), the origin is smack bang in the middle of it, but as I have been testing I have been adding new pins just off to the side.

If I move the pins after creating them they will snap correctly to the grid. Its when I am adding multiple pins in succession, using the arrow keys to navigate around the symbol and place additional pins just using my keyboard. I have just never experienced this level of buggyness when doing this. In prior versions of KiCad I could lay down a lot of pins in quick succession using nothing but the keyboard and they would all be perfectly aligned to the grid. This behaviour has seemingly only come about in something upwards of 8.0.7 (the last version I was using was 8.0.1 so I figured it might have been time for an update).

I am very aware of the use of busses in the schematic - I use them all the time. BUS as a symbol in this case is an expansion bus header symbol with named pins for easy identification as opposed to a more generic multi-pin header/socket symbol. It allows me to lay out my schematic in a much nicer way (IMO). :slight_smile:

Thanks

I wrote hundreds and thousands.

I didn’t recognise your pin creation procedure but maybe your hotkeys are different. Here’s what I did.

  1. Selected a writable library.

  2. File > New Symbol

  3. Enter symbol name. Ok.

  4. P for Add Pin

  5. Enter Pin Name and Pin Number. Ok

  6. Moving the pointer jumps between grid snap points. Typically the window is zoomed in too far so I have to use F2 a few times. Click left mouse button to accept. Pin 1 is placed.

  7. Ins key for repeat last action. Pin 2 with the same label A appears and also snaps to the grid.

I’m sure others will have followed the same or similar steps.

1 Like

Sorry, I misread.

But even still, I dont know why it should matter if I am this far off the origin.

But as a test I created a new symbol and placed one pin at 0,0 by aligning it there with the mouse. I then added two more pins down from this one using only the keyboard.

When editing the pins to view their coordinates, the first pin is at 0,0, the second pin is at -1.14961,99.2126, and the final pin is at -1.14961,199.30315 on a 100 mil grid.

So at least on the surface it doesnt seem to be some kind of bug with being far away from the origin.

Thanks