X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=pwUCY6cDpgD7n1dbH0uEZh+7ttac4wkYvQ589WaOj10=; b=rQr6v2qNuddb9Se1g/gYEp0MLFhNOgiq6ujEmwpmpbmwjODmCVvGRCY5yUcpylJgg7 aa6npR7BqDeFb4SwCmCi7yDImu6HzmMGb6JvHS/6VABGZFdQMR+6Uv7aQkHPAqnuKqkt Wil0EUeuw9o4EWa5wZQB5V23pN766jxPV68VO1tO8001ZhBaqAXgIQijGuja8cAoNqDx IQ3f1tGWGDBvUUruCzxekV6spsz0Yoj1nxxOuawmjNbmISjK7BqMu8IulucVtFE+6mnO tAKUerYrpqTt5SZHw+NAdwLmInDzkd+1B+QaMtLRvonKIZVhsn2SsxY9OazyJV/oqYSL qS+Q== X-Received: by 10.152.37.69 with SMTP id w5mr4638638laj.15.1425493112730; Wed, 04 Mar 2015 10:18:32 -0800 (PST) Date: Wed, 4 Mar 2015 21:18:30 +0300 From: Vladimir Zhbanov To: geda-user AT delorie DOT com Subject: Re: [geda-user] work on gEDA Message-ID: <20150304181830.GB27431@localhost.localdomain> Mail-Followup-To: geda-user AT delorie DOT com References: <20150215021721 DOT 28d94fde AT jive> <20150303183148 DOT GA22832 AT localhost DOT localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 Precedence: bulk Hi, Kai-Martin. On Wed, Mar 04, 2015 at 03:25:46AM +0100, Kai-Martin Knaak wrote: ... > > 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 Sorry, my fault. I meant the menu 'Edit->Evaluate macro' which can be invoked hitting <:> as well. Though this doesn't matter. > 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. Try this: (use-modules (geda page)) (use-modules (geda object)) (define R (make-component/library "resistor-2.sym" '(40000 . 40000) 0 #t #f)) (page-append! (active-page) R) (promote-attribs! R) > > > 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? You already know the answer, right? ;) > 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 On my system I do: info Search for 'geda' /geda and see the pointer 'gEDA scheme' under the header 'The Algorithmic Language Scheme'. 'geda-scheme' is related to all geda-gaf tools, not only gschem. And nobody wrote 'info gschem' yet. > 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) I believed you do have write access, do you? ;) A link to the real online documentation would be useful, 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 My gschem has 'Gschem User Guide' as the first entry in the 'Help' menu (). Does yours has one? (However, all the 'Help' menu entries don't work for me for some reason :) Wine seems to have broke them, I see some strange Wine-like errors and m$windows paths in my terminal when I click on them.) > 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? Nothing, I think :) However, the info manual could be converted into HTML and placed some place on geda-project.org. (Willst Du aber nicht es alles auf meine Shulter legen, richtig? (Ich sherze, sei gelassen :)) Probably, this might be the reason for such a word (?)... > > Anyway, I got the good news: > Scripted manipulation of schematics works -- sort of. > > ---<)kaimartin(>--- > Cheers, Vladimir