Hi,
So I would like to make a module that is an etching indicator, which consists of two triangles with their points just touching each other. If there’s a gap between the triangles, the board is under etched, if there’s a thick line between the two, its under etched.
So the best way to draw two sharp triangles would be with polygons. Unfortunately this is not a standard feature. I dont understand why people draw their components or logos in paintbrush or gimp and then import them with the bitmap tool. Does no-one use vector to bring in exact vector art rather then butchered raster images? Anyways I digress…
So I have been manually filling areas by drawing lines next to each other in a free CAD program then importing the DXF, editing the text file to replace the thickness and layer attributes… a very tedious process.
So I read this:
It links to the KiCAD file format, but the link no longer exists. The File format help page on KidCADs just lists the file formats, not the format itself.
Quite a few pages I have read say refer to demos/interf_u/image.mod:
But when I open it, it looks like some sort gerber file:
e.g.:
> PCBNEW-LibModule-V1
> $INDEX
> LOGO
> $EndINDEX
> #
> # LOGO
> # pixmap w = 229, h = 270
> #
> $MODULE LOGO
> Po 0 0 0 15 00000000 00000000 ~~
> T0 0 4800 600 600 0 120 N I 21 “G***”
> T1 0 -4800 600 600 0 120 N I 21 “LOGO”
> DP 0 0 0 0 5 1 21
> Dl -3783 4516
> Dl -3766 -4466
> Dl 3850 -4483
Whereas If I make a module and open it, it looks more like some sort of XML with angle brackets… (so im guessing different file formats? Both are .mod?)
(module Etching_Indicator (layer F.Cu) (tedit 56E34257)
(fp_text reference REF** (at 0 0.5) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value Etching_Indicator (at 0 -0.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
Some posts I have read say make a zone in PCBNew and paste it into your .mod file. I tried a few iterations of syntax I thought would work, none did.
I am guessing the file formats changed, and google is still stuck on serving up all the old links to none applicable examples.
What is the new file format for polygons?
(…so I can turn these two zones into a polygon in the footprint editor):
(zone (net 0) (net_name “”) (layer F.Cu) (tstamp 56E35046) (hatch none 0.508)
(connect_pads (clearance 0.508))
(min_thickness 0.3)
(fill (arc_segments 16) (thermal_gap 0.508) (thermal_bridge_width 0.635))
(polygon
(pts
(xy 178.5 90) (xy 177 89) (xy 178.5 88) (xy 178.5 90)
)
)
)
(zone (net 0) (net_name “”) (layer F.Cu) (tstamp 56E35047) (hatch none 0.508)
(connect_pads (clearance 0.508))
(min_thickness 0.3)
(fill (arc_segments 16) (thermal_gap 0.508) (thermal_bridge_width 0.635))
(polygon
(pts
(xy 177 89) (xy 175.5 90) (xy 175.5 88) (xy 177 89)
)
)
)
Thanks for any help!