Opps.. So I did. Sorry!
Well it doesn't give a line number but I does point me to a macro "AM" issue.
Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s)
at CamBam.CAD.Gerber_ApertureMacro.BuildShape(Double[] Modifiers)
at CamBam.CAD.Gerber_ApertureDefinition.BuildShape(GerberFile parent)
at CamBam.CAD.GerberFile.a3Cp8RU0g9(Gerber_ApertureDefinition )
at CamBam.CAD.GerberFile.AddToDocument(CADFile doc)
at CamBam.UI.CamBamUI._OpenFileWorker()
The only macro is this:
%AMRoundRect*
0 Rectangle with rounded corners*
0 $1 Rounding radius*
0 $2 $3 $4 $5 $6 $7 $8 $9 X,Y pos of 4 corners*
0 Add a 4 corners polygon primitive as box body*
4,1,4,$2,$3,$4,$5,$6,$7,$8,$9,$2,$3,0*
0 Add four circle primitives for the rounded corners*
1,1,$1+$1,$2,$3*
1,1,$1+$1,$4,$5*
1,1,$1+$1,$6,$7*
1,1,$1+$1,$8,$9*
0 Add four rect primitives between the rounded corners*
20,1,$1+$1,$2,$3,$4,$5,0*
20,1,$1+$1,$4,$5,$6,$7,0*
20,1,$1+$1,$6,$7,$8,$9,0*
20,1,$1+$1,$8,$9,$2,$3,0*%
The AD for it is this:
%ADD12RoundRect,0.250000X-0.600000X-0.600000X0.600000X-0.600000X0.600000X0.600000X-0.600000X0.600000X0.0*%
If I remove the entire ADD12RoundRect line I can read the file OK so that seems to be where the problem is.
That seems to have 10 parameters when it should have 9. This is new to me so I'm not too sure about that. If I remove the extra "X0" at the end it doesn't help so that is not the problem.
Can you see anything wrong with it? If not does that mean the cambam parser is the problem?
PS: I removed the macro and replaced the AD12RoundRect with
%ADD12R,1.4500000X-1.4500000X0*%
Now I can import.
I'd consider this a bug.