Re: gEDA-user: Interpreter for automation schematics

2011-03-30 Thread John Doty
On Mar 30, 2011, at 6:03 PM, Peter Clifton wrote: > On Wed, 2011-03-30 at 21:22 +0200, John Erlandsson wrote: >> Thanks for that. I am making progress now... >> >> Where can I find a list of all procedures and globals that can be used >> for scripting? The libgeda wikipage doesn't seem to cover

Re: gEDA-user: Interpreter for automation schematics

2011-03-30 Thread Peter Clifton
On Wed, 2011-03-30 at 21:22 +0200, John Erlandsson wrote: > Thanks for that. I am making progress now... > > Where can I find a list of all procedures and globals that can be used > for scripting? The libgeda wikipage doesn't seem to cover them all. I don't think we have one really - grep the so

Re: gEDA-user: Interpreter for automation schematics

2011-03-30 Thread John Erlandsson
Thanks for that. I am making progress now... Where can I find a list of all procedures and globals that can be used for scripting? The libgeda wikipage doesn't seem to cover them all. //John On 03/30/2011 01:36 PM, Peter Clifton wrote: If you type ":" to get a scheme prompt, then enter: (d

Re: gEDA-user: Interpreter for automation schematics

2011-03-30 Thread Peter Clifton
On Wed, 2011-03-30 at 10:37 +0200, John Erlandsson wrote: > >(define (test2) >(display "work dammit!") >(newline) >) If you type ":" to get a scheme prompt, then enter: (display "work dammit!") in gschem, it does indeed print to the console. I wonder if your function w

Re: gEDA-user: Interpreter for automation schematics

2011-03-30 Thread John Erlandsson
Hello again! After reading mr. Dotys tutorial on guile scripting, I decided that this was the way to go. A few questions: I would prefer to run scripts from gschem directly. But I cant find a way to output text. This makes the learning curve a lot steeper. I tried starting gsch

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread John Erlandsson
Hi I will look into it. Thanks! /john On 03/29/2011 04:21 PM, John Doty wrote: On Mar 29, 2011, at 4:15 AM, John Erlandsson wrote: I have been reading about the guile side of gschem. Does anyone know of any example scripts that i could look at? Preferably scripts that alters the sc

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread John Erlandsson
There are a few attributes left from my awk attempts. I used crossref-ms-no to keep track of how many subsymbols where related to that specific symbol. When the script found a coil, say K1. It went in to a loop browsing for subsymbols with the same refdes. When one was found it chang

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread John Doty
On Mar 29, 2011, at 4:15 AM, John Erlandsson wrote: > I have been reading about the guile side of gschem. Does anyone know of > any example scripts that i could look at? > Preferably scripts that alters the schematics in some way. The project at https://github.com/xcthulhu/lambda-geda is a

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread Peter Clifton
On Tue, 2011-03-29 at 15:11 +0200, John Erlandsson wrote: > Sorry about that... >they should be ok now. Thanks.. What does the attribute crossref-ms-no mean? Is that how the contacts of a contactor can refer back to the location of the coil? Obviously each piece which is cross-reference-able

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread John Erlandsson
Sorry about that... they should be ok now. //John On 03/29/2011 03:04 PM, Peter Clifton wrote: On Tue, 2011-03-29 at 13:18 +0200, John Erlandsson wrote: Hello! Thanks for taking an interest! I attached two schematics that illustrates what i want. Could you run them through "gsc

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread Peter Clifton
On Tue, 2011-03-29 at 13:18 +0200, John Erlandsson wrote: > Hello! >Thanks for taking an interest! >I attached two schematics that illustrates what i want. Could you run them through "gschlas -e ..." to embed the symbols used, or attach the missing symbols? -- Peter Clifton Electrical E

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread John Erlandsson
Hello! Thanks for taking an interest! I attached two schematics that illustrates what i want. It doesn't matter if it is a third party c-program that i run manually, or if it is a script that i invoke while drawing. The problem with my awk script was that there were to many condit

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread Peter Clifton
On Tue, 2011-03-29 at 12:15 +0200, John Erlandsson wrote: > Hello again! >I have been reading about the guile side of gschem. Does anyone know of >any example scripts that i could look at? There isn't anything I can think of immediately. There are some basic examples in the source code if

Re: gEDA-user: Interpreter for automation schematics

2011-03-29 Thread John Erlandsson
Hello again! I have been reading about the guile side of gschem. Does anyone know of any example scripts that i could look at? Preferably scripts that alters the schematics in some way. //John On 03/28/2011 07:41 AM, John Erlandsson wrote: Hi! I would like to use gschem to

gEDA-user: Interpreter for automation schematics

2011-03-27 Thread John Erlandsson
Hi! I would like to use gschem to draw automation schematics according to Swedish standards. What I need is an interpreter that handles crossreferences, page numbering, BOM generation, and functions like finding duplicates. My question to you is how to best go about this. I ma