From f1f736cf3c4819bb60bfda6575bec8bc01d52c9e Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 22 Jun 2017 11:55:12 +0200 Subject: [PATCH] Mark the footprint as virtual in the pretty format The export currently adds (attr smd), which marks the footprint as an SMD component (which internally sets the MOD_CMS attribute, and in the GUI marks the component as "Normal+Insert"). This causes it to be exported in a .pos file for a pick & place machine. Since this is just a silkscreen and not an actual component, this makes no sense. This commit instead sets (attr virtual) (which internally sets MOD_VIRTUAL, and in the GUI marks the component as "Virtual") which causes it to be ignored by various parts of kicad that iterate over actual components. --- svg2mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg2mod.py b/svg2mod.py index 21529f3..4866f8b 100755 --- a/svg2mod.py +++ b/svg2mod.py @@ -1201,7 +1201,7 @@ def _get_module_name( self, front = None ): def _write_library_intro( self ): self.output_file.write( """(module {0} (layer F.Cu) (tedit {1:8X}) - (attr smd) + (attr virtual) (descr "{2}") (tags {3}) """.format(