[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Changing grids in pcb



> Wouldn't you just use set grid with the -+ for increment and process  
> units?

No.  If you had a list of grid settings you used, then +- means
stepping through the list, not arithmetic changes.  Consider my grid
choices:

    {  "0.1 mil" checked=gridsize,10 SetUnits(mil) SetValue(Grid,10)}
    {  "1 mil"   checked=gridsize,100 SetUnits(mil) SetValue(Grid,100) an={"G1" "<Keys>g1"}}
    {  "5 mil"   checked=gridsize,500 SetUnits(mil) SetValue(Grid,500) an={"G2" "<Keys>g2"}}
    {  "6.25 mil" checked=gridsize,625 SetUnits(mil) SetValue(Grid,625) an={"G3" "<Keys>g3"}}
    { "10 mil"   checked=gridsize,1000 SetUnits(mil) SetValue(Grid,1000) an={"G4" "<Keys>g4"}}
    { "12.5 mil" checked=gridsize,1250 SetUnits(mil) SetValue(Grid,1250) an={"G5" "<Keys>g5"}}
    { "25 mil"   checked=gridsize,2500 SetUnits(mil) SetValue(Grid,2500) an={"G6" "<Keys>g6"}}
    {" 50 mil"   checked=gridsize,5000 SetUnits(mil) SetValue(Grid,5000) an={"G7" "<Keys>g7"}}
    {"100 mil"   checked=gridsize,10000 SetUnits(mil) SetValue(Grid,10000) an={"G8" "<Keys>g8"}}

There's no math that will get you through that list reliably.

Plus, the other problem is changing the mapped actions according to
the inch/mm setting.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user