X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Tue, 1 Sep 2015 16:26:08 +0200 (CEST) X-X-Sender: igor2 AT igor2priv To: "Levente (leventelist AT gmail DOT com) [via geda-user AT delorie DOT com]" X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" From: gedau AT igor2 DOT repo DOT hu Subject: Re: [geda-user] full perl parser for pcb files? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 On Tue, 1 Sep 2015, Levente (leventelist AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: >That sounds interesting. Is there any tutorial for the perl interface? How >can I access PCB objects with it? There are mainly two ways (both should work from CLI in batch mode). One way is to write an exporter. This does not get the internal objects but drawing commands. For a converter it is useful only if you want to extract graphical information. The other way is writing a script that creates an action. The action then does a search on the design objects and query the objects one by one from the search list. I am not sure I have full support for all kind of objects yet, but I am sure I can fix bugs or add features in short turnaround times. If you are still in Hungary, we can even meet and arrange an intensive coding session. The tutorial is the rosetta subproject that offers a few scripts at different difficulty levels to demonstrate and explain how to do things. I believe the most relevant example for you is http://repo.hu/projects/pcb-rnd/gpmi/rosetta/30_move/index.html There is also a scripting doc at http://repo.hu/projects/pcb-rnd/gpmi/index.html I can provide support with the installation in private, if required. Regards, Igor2