| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| Subject: | Re: [geda-user] automatically create a .sch file containing a single |
| component? | |
| To: | geda-user AT delorie DOT com |
| References: | <CAC4O8c_Gssuua3aHJSEMTW_Sw5W9rvtwrys1e=BP=CvHmEifJA AT mail DOT gmail DOT com> |
| From: | "Branko (brankob AT s5tehnika DOT net) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| Message-ID: | <9a84efe9-2ed3-dac3-bc25-ee017bac87a4@s5tehnika.net> |
| Disposition-Notification-To: | Branko <brankob AT s5tehnika DOT net> |
| Date: | Thu, 3 Dec 2020 23:16:50 +0000 |
| User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 |
| Thunderbird/78.5.0 | |
| MIME-Version: | 1.0 |
| In-Reply-To: | <CAC4O8c_Gssuua3aHJSEMTW_Sw5W9rvtwrys1e=BP=CvHmEifJA@mail.gmail.com> |
| Reply-To: | geda-user AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-user AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
I might be missing something substantial here, but why not just make initial schematic ( empty and with one element) and compare them, both visually as with "diff". This will immediatelly show you how to embed element into empty schematic. I bet it can be done effectively even in bash, let alone Python etc. On 3. 12. 20 20:12, Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > Another small thing I'd like to automate is my setup for validating > footprints of symbols. I use heavy symbols with footprints associated > with each part. To check a symbol I first create a .sym and .fpt, > then create a file checkfpt.sch which contains just the .sym, then use > gsh2pcb to create a pcb file containing the symbol, and launch pcb to > take a look at it. > > The part that's pointlessly interactive is the creation of the .sch > file. I have to have gschem launched and manually add the symbol. > > I'd like to do one of these instead: > > * create an sch containing just the sch using some batch mode op > > * just create the sch by script. but I don't get why some text > elements (refdes=, device=) end up > repeated in the .sch file and other stay in the element. what > distinguishes these elements? > > * create the pcb file directly. sort of a hassle but probably what > I'll do unless there's a better way, > a little weird in my case since I have a lot of footprints using a > text library of my own > > * view the footprint file in a way that shows the refdes. I know it > possible to view footprints directly > with pcb, the only problem with this is it doesn't show the refdes. > Is there some way to make it > do so? > > Britton >
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |