www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/07/19/20:11:17

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] The new to do
Date: Mon, 20 Jul 2015 02:10:55 +0200
Lines: 29
Message-ID: <moheag$673$1@ger.gmane.org>
References: <CAM2RGhQ70Pex5aNeQ86vKHc7sKf_Vpws69__CPb2QKg6fJTeHg AT mail DOT gmail DOT com> <mnv04v$if0$1 AT ger DOT gmane DOT org> <0A5D410F-D1EF-4FC6-AF0F-BB13218B1615 AT icloud DOT com> <alpine DOT DEB DOT 2 DOT 00 DOT 1507131000330 DOT 6924 AT igor2priv> <mo1rd7$oef$1 AT ger DOT gmane DOT org> <20150714084906 DOT GC14371 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-11-108.net-htp.de
User-Agent: KNode/4.14.1
Reply-To: geda-user AT delorie DOT com

Vladimir Zhbanov (vzhbanov AT gmail DOT com) 
[via geda-user AT delorie DOT com] wrote:

> What a first scripting example would you like to see in the
> scripting how to?
> 
Do a custom PDF print of the pcb layout:
  page one: top layer with refdes
  page two: top layer with values
  page three: bottom layer with refdes
  page four: bottom layer with values
all pages: black silk, black outline, pads and pins in dark gray and 
tracks in light gray. Rescale the layout until it fits an A4 paper.

Ok, this may be a bit over the top for a first example. It is what I 
actually need, though. So I whipped up a bash script which calls the 
pcb printing hid with action commands to change sides and switch from 
refdes to value. I had to patch pcb to not exit immediately. It 
assumes that non-interactive hids should never use these commands and 
exits preemptively. Unfortunately, my patch which replaced this 
deliberate exit with a warning did not get accepted by the devs. So I 
habitually apply this patch locally.

Back to a first example for useful scripting. How about multi-copy:
  Copy/paste the current selection multiple times translated by an
  amount given by the user. For bonus points also rotate the selection
  by an angle with each paste action.

---<)kaimartin(>---

- Raw text -


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