delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/07/08/10:30:37

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=mime-version:from:date:message-id:subject:to:content-type
:x-gm-message-state;
bh=KWJLy/wPq98v/hJPaJFNgmbDyhj9xmzrF176dnd2qdg=;
b=OQWA2U9hKnWEB/EB+7FJt5jS3+g2/X2jGTllLyJCLge4AwRJwak4m/FsdPheFI2rjr
FUrvKeSNhI/ge1ZqEEFHKGRQUnNpj207d4SYhmMb18PQaT0CwSESYMdGjGVEhw53jYsi
Rk/95WiJvInxDftKzEnlWuAkuX21Gr/yzXH8xSjWOh2eXDAAmayTj9hTSgqqRzQ2VxYi
W8vodOJgkJc2MjSB1MBNAZ40UaOtEE+9nJT04ddYJ7idM+bAQqMIc+IoCoeTlTzoOUOm
y3BMIohHHYnbNRB+RzO49P4FKs0/J2TyhgUpsy9n0A+gSfIJsrtrpQ1IwXyj2VdEsPzX
ro3Q==
X-Received: by 10.180.9.134 with SMTP id z6mr11954993wia.2.1373293790767; Mon,
08 Jul 2013 07:29:50 -0700 (PDT)
MIME-Version: 1.0
From: Joshua Lansford <joshua DOT lansford AT laserlinc DOT com>
Date: Mon, 8 Jul 2013 10:29:29 -0400
Message-ID: <CAGRhJMbBg-ios4YJnVEbaTSNJNKmN1RuQZnfywhxt_2r8jPygw@mail.gmail.com>
Subject: [geda-user] gschem script button
To: geda-user AT delorie DOT com
X-Gm-Message-State: ALoCoQmOpropJ9d7yvAeGcF8vb+gh9asGBxejzzZzoiueq+XJBvzgEWqKugj9yCHyw12t0A8Vn7f
Reply-To: geda-user AT delorie DOT com

--001a11c2b1be923e6304e100e021
Content-Type: text/plain; charset=ISO-8859-1

Hey guys,
  An idea for gschem and possibly pcb:
  From my understanding, a lot of the power of gschem comes from the
simplistic file format which allows external scripts to extract and change
information.  I have utilized this myself as well as several other folks.
 For a command line kind of person like myself this isn't a problem.
  For a gui type of person, jumping in and out of the program though the
design iteration to execute external scripts seems like a design flaw.  (I
don't think it is... just saying...) so I thought of the following idea for
incorporating external scripts into gschem without script specifically
having been design for inclusion.
  Create a directive to include in the gafrc file which specifies
  -a script filename with arguments and a $@
 -an image icon,
   -and a tool tip.
This button then shows in gschem on the tool bar.  When this button is
clicked, the in memory pages are saved to a temporary folder, the script is
called with these pages and the temporary files are then loaded back into
gschem without editing the original files.  The textual information of the
script is shown in a popup.  The user can then immediately view the changes
the script made, if any and if he/she likes them can then save them, or hit
undo to revert.
  This work flow process should handle bom generation, export to pcb,
refdes_renum as well as innumerable other scripts which work directly on
the file format itself.
  Powerful scripts then become available as button clicks to those who try
to stay clear of the ominous command line.  Just an idea.
~Joshua

--001a11c2b1be923e6304e100e021
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hey guys,<div style>=A0 An idea for gschem and possibly pc=
b:</div><div style>=A0 From my understanding, a lot of the power of gschem =
comes from the simplistic file format which allows external scripts to extr=
act and change information. =A0I have utilized this myself as well as sever=
al other folks. =A0For a command line kind of person like myself this isn&#=
39;t a problem.</div>

<div style>=A0 For a gui type of person, jumping in and out of the program =
though the design iteration to execute external scripts seems like a design=
 flaw. =A0(I don&#39;t think it is... just saying...) so I thought of the f=
ollowing idea for incorporating external scripts into gschem without script=
 specifically having been design for inclusion.</div>

<div style>=A0 Create a directive to include in the gafrc file which specif=
ies=A0</div><div style>=A0 -a script filename with arguments and a=A0<span =
style=3D"color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,&#39;Lucida Con=
sole&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstre=
am Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif;font-size:14px=
;line-height:18px;background-color:rgb(238,238,238)">$@</span></div>

<div style><font color=3D"#000000" face=3D"Consolas, Menlo, Monaco, Lucida =
Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Couri=
er New, monospace, serif"><span style=3D"font-size:14px;line-height:18px">=
=A0-</span></font>an image icon,</div>

<div style>=A0 =A0-and a tool tip. =A0</div><div style>This button then sho=
ws in gschem on the tool bar. =A0When this button is clicked, the in memory=
 pages are saved to a temporary folder, the script is called with these pag=
es and the temporary files are then loaded back into gschem without editing=
 the original files. =A0The textual information of the script is shown in a=
 popup. =A0The user can then=A0immediately=A0view the changes the script ma=
de, if any and if he/she likes them can then save them, or hit undo to reve=
rt.</div>

<div style>=A0 This work flow process should handle bom generation, export =
to pcb, refdes_renum as well as=A0innumerable=A0other scripts which work di=
rectly on the file format itself.</div><div style>=A0=A0Powerful=A0scripts =
then become=A0available=A0as button clicks to those who try to stay clear o=
f the=A0ominous=A0command line. =A0Just an idea.</div>

<div style>~Joshua</div></div>

--001a11c2b1be923e6304e100e021--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019