Skip to content

Commit

Permalink
set Val and Ref to hidden on F.SilkS by default
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbilbaeno committed Oct 26, 2018
1 parent 1e5b5d4 commit a02c9bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inkscape/svg2shenzhen/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@
LibName29=valves
'''

MODULE_INVIS_REF_HEADER = '''
(fp_text reference Ref** (at 0 0) (layer F.SilkS) hide
(effects (font (size 1.27 1.27) (thickness 0.15)))
)
(fp_text value Val** (at 0 0) (layer F.SilkS) hide
(effects (font (size 1.27 1.27) (thickness 0.15)))
)
'''

IDENTITY_MATRIX = [[1.0,0.0,0.0],[0.0,1.0,0.0]]


Expand Down Expand Up @@ -461,6 +470,7 @@ def processExportLayer(self):

elif options.filetype == "kicad_module":
kicad_modules_string = '(module "{}" (layer F.Cu)'.format(name)
kicad_modules_string += MODULE_INVIS_REF_HEADER
for kicad_file in kicad_mod_files:
with open(kicad_file, 'r') as f:
mod = f.readlines()[8:-1]
Expand Down

0 comments on commit a02c9bb

Please sign in to comment.