www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/01/10:23:45

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]" <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: <CACwWb3Aw-eUo1YJwh1vTDLgsBLVzsKDJ2Op_8SW7C4gMiXCU3A@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1509011617500.6924@igor2priv>
References: <CAC4O8c_QPVqeKMsJbEbXNHGid_O+Bn=0YzD5ahqGfbCc1e+eAQ AT mail DOT gmail DOT com> <CAM2RGhSPr2NfvtULykZ0qwMufMvEBn8rR20rydmGoyOgehNgdg AT mail DOT gmail DOT com> <CACwWb3Aw-eUo1YJwh1vTDLgsBLVzsKDJ2Op_8SW7C4gMiXCU3A AT mail DOT gmail DOT com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
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


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

- Raw text -


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