X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Authority-Analysis: v=2.0 cv=AtpsLZBP c=1 sm=0 a=6jktZp3dcHAl1vye2O6wCg==:17 a=jl9P3j1e7_0A:10 a=2xJ3G-9csIsA:10 a=8hO_kANTrYkA:10 a=6WB07kdHjWAA:10 a=8nJEP1OIZ-IA:10 a=wR-FlJDvAAAA:8 a=dztWTzYJtTbDwv-IP8gA:9 a=wPNLvfGTeEIA:10 a=6jktZp3dcHAl1vye2O6wCg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 70.113.67.117 Message-ID: <50089DC4.7020006@ecosensory.com> Date: Thu, 19 Jul 2012 18:52:36 -0500 From: John Griessen User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] pcb footprint update hack References: <20120719182728 DOT GA12447 AT slana DOT eecs DOT oregonstate DOT edu> <201207191846 DOT q6JIkbTb030133 AT envy DOT delorie DOT com> <20120719160003 DOT 3a3fb538 AT svelte> <201207192322 DOT q6JNMhYj012483 AT envy DOT delorie DOT com> In-Reply-To: <201207192322.q6JNMhYj012483@envy.delorie.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com On 07/19/2012 06:22 PM, DJ Delorie wrote: >> 1. Rename the old footprint file to a different name: > > It's a lot safer to rename the footprint in the *.pcb, then you don't > have to change a possibly-shared library. This way also means you > import only once. So, would this be the procedure? Suppose you have the following set of files for your project, for simplicity's sake: Board.pcb Schematic.sch XYZ123.fp Suppose further that you have 50 instances of XYZ123 on your schematic. You really don't want to do this manually. 1. search and replace with sed or ? on the file Board.pcb to replace XYZ123.fp with XYZ123_new.fp 2. Replace all instances of this in your schematic with the temporary name: sed -i -e 's/footprint=XYZ123/footprint=XYZ123_new/' 2a. create file XYZ123_new.fp 3. Open the layout in pcb and update the layout from schematic. pcb Board.pcb Execute File | Import Schematics. 4. You might have to fix some components, they sometimes are rotated incorrectly after being updated. Use the rotate tool and click on the component reference point (diamond) until things are lined up. 5. Save the layout. But now you have a name of XYZ123_new.fp. How do you get to modified XYZ123.fp in fewer steps that Colin suggested? Or are you suggesting always use anew name? John