Trailing zero suppression is widely used in CNC output and Milling
output but I can’t remember being asked for it for in Gerber before.
4.4 in imperial measure is pretty extreme - a maximum coordinate
of 9999.9999 inches = of over a tenth of a mile. Doesn’t matter
when leading zeroes are suppressed but does when trailing as at
least 2 leading 0’s are always present.
2.4 would be a better option for trailing zero omission but
I’ll give you 4.4 as asked for.
Expect you would like it for GERB274X so perhaps you could trial
this which looks OK in Viewmate:-
In a VTXSHELL
copy \vutrax\gerb_274x.hxy \vutrax\gerb_274x_tzs.hxy
setattr \vutrax\gerb_274x_tzs.hxy /r-
(If you accidentally lose the original file just install
Vutrax & any updates over itself again)
In your new file mass edit every $V1, to $V309, as in
SEE \vutrax\gerb_274x_tzs.hxy
Ctrl+F $V1,
S$V309,
D0
(Should say it did 8 changes)
Ctrl+Q Y
In Plot > Photoplotting in the [Plotter] item
select your new file INSTEAD of \vutrax\gerb_274x.hxy
and run it all normally.
The only remaining problem is the GERBER header file line
%FSLAX44Y44*% G04 4.4 format, Absolute, Lead-zero suppress *
which is embedded in GERB274X.EXE (no .EXE if you are using the
Linux version) so it is ‘non-trivial’ to change.
For now use SEE to change the FSL (leading) to FST (Trailing).
Not difficult to ‘automate’ - you can make a VTXPATCH file
‘%FSLA’ ; ‘%FSTA’
and call up VTXPATCH from a command (.BAT) file, but to do it
‘properly’ needs some sort of new design to allow GERB274X to
know what the control file is going to do.
Please let us know how it goes
We may opt to introduce this as a new format or generate a
SAN (see website support) on the subject once its right.