www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/03/03/21:27:54

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Kai-Martin Knaak <kmk AT familieknaak DOT de>
Subject: Re: [geda-user] work on gEDA
Date: Wed, 04 Mar 2015 03:25:46 +0100
Lines: 61
Message-ID: <md5qfb$f4g$1@ger.gmane.org>
References: <20150215021721 DOT 28d94fde AT jive> <mcvthm$db0$1 AT ger DOT gmane DOT org> <20150303183148 DOT GA22832 AT localhost DOT localdomain>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: a89-182-141-152.net-htp.de
User-Agent: KNode/4.14.1
Reply-To: geda-user AT delorie DOT com

Vladimir Zhbanov wrote:

> On Sun, Mar 01, 2015 at 09:41:25PM +0100, Kai-Martin Knaak wrote:
> ...
>> scripts. But unless  I missed something actions are missing and
>> there is no way to make the script put a symbol somewhere.

> In gschem, select File->Evaluate script... and type:

Ah, so did indeed miss something!

In my git head copy of gschem a file chooser dialog launches if I 
select file->Execute_script..  But fair enough. I put the guile 
commands into a file.

> (use-modules (geda page))
> (use-modules (geda object))
> (page-append! (active-page) (make-component/library "resistor-2.sym"
> '(40000 . 40000) 0 #t #f))


The script did place a resistor on the page. But unlike a symbol 
placed via the GUI no attributes got promoted and instantiated in the 
schematic. The refdes rendered in red and were not editable. 

I tried to promote the refdes attribute manually via the context menu 
in the attribute editor. This produced a promoted copy of the 
attribute at some default position, not identical to the position 
given to the refdes in the *.sym file. The unpromoted version of the 
refdes attribute remained visible.

 
> Please look at 'info geda-scheme' for more info on this. 

Err, well ... this is well hidden. 
How should I know that "geda-scheme" is the term to look for in info?
There is no info node for gschem so info defaults to the man page. The 
man page does not mention scheme at all. It is quite brief and refers 
the reader to "the program's  `Help' menu.". The help menu of gschem 
opens an offline copy of
     http://wiki.geda-project.org/geda:documentation
(BTW, the file characterizes itself as "on-line documentation". 
Somebody with write access to the wiki might remove the attribute "on-
line" to make the heading compatible for offline use, too)

Unlike the on-line version of the wiki, the static HTML pages do not 
offer a search facility. But let's assume I was smart enough to browse 
to the "gEDA gschem User guide". (BTW, wouldn't it be nice to refer 
the user directly to the manual in the first place?) The very last 
section of the manual is "Appendix: Extending gschem". This section 
focuses on ways to change gschem itself not on ways to change the 
schematic. 
It says: "The gEDA Scheme Reference Manual is **also** available as an 
Info manual (info geda-scheme)." (emphasis by me)
I did not find any other place for the geda scheme references than the 
info page. Did I miss something again?

Anyway, I got the good news: 
Scripted manipulation of schematics works -- sort of. 

---<)kaimartin(>---

- Raw text -


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