KiCad PCB Grid Origin

KiCad 7 Showing the Rectangles Properties box for the Edge.Cuts layer
KiCad 7 Showing the Rectangles Properties box for the Edge.Cuts layer

When you have been using KiCad for a while to make PCBs, one of the things you will come to find is a pain is that by default the KiCad grid origin is set up in the top left of the Paper Space, which makes it a bit of a pain to use the position X and Y coordinates system. I assumed that someone must have written an online tutorial on how to move the origin. However, despite looking for instructions for moving the PCB Grid Origin, I ended up raising a support ticket.

The Origin (0,0) in the properties dialogue is outside the frame in paper space, The ability to move the origin would allow for easier setup of PCB edge.cuts, as well as placement of components on the PCB. as the Start Point, and the grid would have the same origin.

Support Ticker #15628

Then I was informed in the ticket the functionality already exists in KiCad, and the ticket was closed with the following information:

You could already set the origin to different positions:

  • global Preferences –> pcb editor –> Origins & axes –> Display origin –> use drill file origin / use grid origin
  • subsequently set the drill/grid origin point to any desired location (main menu –> Place –> set drill origin/set grid origin)
Maik Freitag in support ticket #15628

The Default location of the Origin

By default I have the grid turned on, the cursor set to "Full window crosshairs", and the units set to mm. I prefer to work on a grid of 1.2700 mm (0.0500 in) most of the time, as this makes laying out headers and connectors easier on the grid,
By default I have the grid turned on, the cursor set to “Full window crosshairs”, and the units set to mm. I prefer to work on a grid of 1.2700 mm (0.0500 in) most of the time, as this makes laying out headers and connectors on the grid.

As you can see from the above image the cursor is on the origin, X and Y in the status bar read 0,0.

Moving the Origin

the instructions from above are “global Preferences –> pcb editor –> Origins & axes –> Display origin –> use drill file origin / use grid origin”

On Mac, this is the KiCad settings page (cloverleaf key (⌘) + ,), on the left side of the dialogue box, select PCB Editor, and then Origins and Axes.
On Mac, this is the KiCad settings page (cloverleaf key (⌘) + ,), on the left side of the dialogue box, select PCB Editor, and then Origins and Axes.

There are three choices for “Display Origin”, Page origin, Drill/place file origin, and Grid origin.

Display Origin

This is the default origin and is the top left corner of the Paper Space. the origin that I am trying to move away from,

Drill/Place file origin

This is the first of the two origins that we can customise the location of, the Drill/Place file is normally used by PCB fabrication houses when fabricating your PCBs. For PCBs (I normally get my PCBs made up by PCB Way).

The menu location for the "Drill/Place File Origin" option. This is just above the option for placing the "Grid Origin".
The menu location for the “Drill/Place File Origin” option. This is just above the option for placing the “Grid Origin”.
The toolbar location for the "Drill/Place File Origin" option. This is just next to the option for placing the "Grid Origin", to pull out the two options, hold the mouse down over the small arrow in the lower right corner.
The toolbar location for the “Drill/Place File Origin” option. This is just next to the option for placing the “Grid Origin”, to pull out the two options, hold the mouse down over the small arrow in the lower right corner.
In the above screenshot, I have placed the Drill/Place origin in the top left corner of my KiCad PCB.
In the above screenshot, I have placed the Drill/Place origin in the top left corner of my KiCad PCB.
To lock the origin of my grid, this point, I need to select "Drill/place file origin" in the preferences dialog box. This makes the top left corner of the Paper Space about -92,-38. and everything on the PCB locked to a 1.27 mm grid around this point.
To lock the origin of my grid, at this point, I need to select “Drill/place file origin” in the preferences dialog box. This makes the top left corner of the Paper Space about -92,-38. and everything on the PCB is locked to a 1.27 mm grid around this point.

Grid Origin

I place the grid origin in the same location as I place the Drill/place file origin, and in the preferences choose the Grid Origin as my display origin

Grid Origin (white cross at 45 degrees) and Drill/place file origin at the same location in KiCad PCB editor (KiCad 7).
Grid Origin (white cross at 45 degrees) and Drill/place file origin at the same location in KiCad PCB editor (KiCad 7).

Leave a comment

Your email address will not be published. Required fields are marked *

The maximum upload file size: 20 MB. You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop files here

20 thoughts on “KiCad PCB Grid Origin”