ID: | 3253 |
From: | James Battat <jb...@wellesley.edu> |
Date: | Wed, 7 Aug 2019 17:07:36 -0400 |
Subject: | [pcb-rnd] import .fp, modify and save as new footprint |
replies: | 3254 from ge...@igor2.repo.hu |
I'm trying to import an .fp file from gedasymbols, modify it (by removing a hole), and then save it as a footprint (to be an attribute for a gschem symbol). I can break up the subc and remove the hole, but then can't reconstitute the subc. Here's what I've tried so far. I start with erich_heinzle's footprint from gedasymbols: http://www.gedasymbols.org/user/erich_heinzle/kicad/footprints/w_conn_misc.mod/arduino_header.fp and rename to arduino_header_nohole.fp === Approach #1 === * Open footprint in pcb-rnd: $ pcb-rnd arduino_header_nohole.fp * Break up subcircuit Select all visible: {s a a} Break selection subcircuits to pieces {s b s} * Remove the relevant hole (one of the 4 large mounting holes -- the one at top-right) Drag-select the hole Right click on hole and select "Remove padstack" Right click on silkscreen circle and select "Remove arc" * Save layout {f s} (arduino_header_nohole.fp) and close pcb-rnd * Try to open file in pcb-rnd: $ pcb-rnd arduino_header_nohole.fp This fails with message: "none of the IO_ plugin recognized the file format of arduino_header_nohole.fp - it's either not a valid board file or does not match the format specified" OK... maybe I need to convert the remaining pieces to a subcircuit before saving? === Approach #2: convert all items to subc before saving === * Repeat the open/break/remove steps from Approach #1 above * Convert items to subcircuit: Select all visible {s a a} Convert selection to subcircuit {s c s} --- items disappear... ? --- undo {u u} brings them back === Approach #3: convert original .fp to .lht first === * Open original arduino_header_nohole.fp footprint in pcb-rnd * Convert to lht: Save as {f a} and select lihata (lihata board v6). Crash: pcb-rnd(53855,0x7fff9ff923c0) malloc: *** error for object 0x21dffff9ccb4069: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Thanks, James PS: I'm using pcb-rnd 2.1.2 (non-svn) on mac osx
Reply subtree:
3253 [pcb-rnd] import .fp, modify and save as new footprint from James Battat <jb...@wellesley.edu>
3254 Re: [pcb-rnd] import .fp, modify and save as new footprint from ge...@igor2.repo.hu
3255 Re: [pcb-rnd] import .fp, modify and save as new footprint from James Battat <jb...@wellesley.edu>
3257 Re: [pcb-rnd] import .fp, modify and save as new footprint from ge...@igor2.repo.hu