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 Subject: Re: [geda-user] The new to do Date: Mon, 20 Jul 2015 02:10:55 +0200 Lines: 29 Message-ID: References: <0A5D410F-D1EF-4FC6-AF0F-BB13218B1615 AT icloud DOT com> <20150714084906 DOT GC14371 AT localhost DOT localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit 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(>---