There are several issues on gitlab about the definitions of flashed pads in gerber files, for example this one:
The issue was reported for V5.1.6 almost half a year ago (2020-09-22) and closed with a “fix-committed” on 2020-11-05. It’s also got a milestone for V6, so apparently it has been decided to not put the fix in V5.1.x
I opened a random gerber made with KiCad V5.99 and zoomed in on a rounded rectangle:
In the status area in the lower left corner you can see it is of “type” “apt_macro RoundRect” and has D code 21.
Searching for D21 in the gerber with a text editor gets these sections:
%TD*%
%TA.AperFunction,SMDPad,CuDef*%
%ADD21RoundRect,0.250000X-0.362500X-1.425000X0.362500X-1.425000X0.362500X1.425000X-0.362500X1.425000X0*%
and a bit further:
%TD*%
D21*
%TO.P,R1,1*%
%TO.N,+24V*%
X206352854Y-112770000D03*
%TO.P,R1,2*%
%TO.N,Net-(D1-Pad2)*%
X212277854Y-112770000D03*
A bit of more digging reveals that an aperture macro for a rounded rectangle is defined as:
%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*%
I also did a search for the way your gerber viewer presents data, but there is no “CON” nor “CIR” in the gerber file. I do not know where those names come from.
Is the way the data is presented in here compatible with your manufacturer?
Gerbview in V5.99 can list D codes in a table: Gerbview / Tools / List D Codes