kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #03312
Re: Metric and English grids sizes.
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"Lorenzo" <lomarcan@...>
-
Date:
Sun, 11 Oct 2009 19:17:14 -0000
-
In-reply-to:
<4AD221D5.8080107@...>
-
User-agent:
eGroups-EW/0.82
--- In kicad-devel@xxxxxxxxxxxxxxx, Dick Hollenbeck <dick@...> wrote:
> Then we need something more stable. I'd switch over to a 0 based index
> into the list of grid sizes, but maybe treat user size as special,
> assigning it -1, just so it does not get moved in the future if more
> sizes are added.
What about the 'obvious' solution, i.e. just saving the grid size in decimils like all the other things in pcbnew?
Something like:
GridSize 1000 1000
for a 100mil grid...
A lookup on the dozen or so predefined values is not so heavy (and anyway is only done on load)
Follow ups
References