gEDA-dev: Checking for mm vs. mil display modes in PCB

Michael Stovenour mstovenour at yahoo.com
Tue Dec 11 15:37:41 EST 2007


>> Interesting.  The HID seems to know, at least in the GTK version,
>> because it has the mil/mm selection button on the top right and the
>> various status displays show the mil or mm units.  Do you think
>> there is a way to detect that display option from the core?
>
>Right, that's the "current mode" flag.  Settings.grid_units_mm
>
>The catch is that you can toggle that flag WITHOUT changing the actual
>grid.  For example, if you have a metric grid but want to measure mils
>between parts, you'd switch to mils, measure, switch back to mm.

I'll try some experiments tonight.  I believe that when I press that HID button the on-screen grid changes and my mouse starts moving in 0.1mm increments (default mm grid?).  It sure seems like the grid changes.


More information about the geda-dev mailing list