Bulk DRC Settings - Python Code

Often it’s the other way around. First somehow they became off-grid (or on a finer grid), and later the grid is set to the most common 50mil [1.27mm] and symbols get aligned to that grid. Schematic symbols have a quite strict requirement for a 100mil grid between pins and sometimes (resistors, capacitors) shifted 50mil to the symbol anchor point. Maybe the new Grid overrides introduced in KiCad V8 changed the default so KiCad now puts things back on a 50mil grid.

A quick way to fix most grid problems in the schematic editor is:

  1. Set the grid to 50mil.
  2. Select everything, draw a box around the paper.
  3. Right click, and from the context menu select: Align Items to Grid.

In some occasions this can create shorts in your schematic, so watch out for that.

In this case it actually makes the matters worse, but selecting everything and moving it, mostly leaves everything on grid again, except for the couple of odd connections.

Also, instead of m to move, you can use g to drag, which keeps the wires attached. For several KiCad versions these drags are now ortogonal and it works well.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.