← Back to team overview

kicad-developers team mailing list archive

Re: Parsing new .kicad_pcb files

 

Senthil,

The module is created when you compile from source.  I'm working on an
Ubuntu PPA with scripting support.  It worked a while ago, but I have to
update it to match some changes in the source.  I'll be posting to this
list when it's ready.

Adam Wolf
Wayne and Layne, LLC


On Sat, Mar 30, 2013 at 8:14 AM, Senthil Seveelavanan <
s.seveelavanan@xxxxxxxxx> wrote:

> Thanks Dick,
>
> The link you provided looks in the right direction... but I am still
> confused:
>
> Is the script shown '*Example that loads a board, hides all values, shows
> all references' *run from independent of a running instance of kicad, or
> does the script require 'kicad with scripting support' (which I understand
> needs to be compiled from source and sounds too scary for me)?... where is
> the python module 'pcb new': the scripts refer to a python file pcbnew (
> from pcbnew import *)? I cannot find it from browsing the source.
>
> Thanks again and sorry for the frustrating/noob questions
>
> Senthil
>
> On Sat, Mar 30, 2013 at 12:40 PM, Dick Hollenbeck <dick@xxxxxxxxxxx>wrote:
>
>> www.kicad-pcb.org/display/KICAD/KiCad+Scripting+Reference+Manual
>> On Mar 28, 2013 2:04 PM, "Senthil Seveelavanan" <s.seveelavanan@xxxxxxxxx>
>> wrote:
>>
>>> ... Also I am looking at the output of a simple pcb layout.
>>>
>>> here is the top 3 lines
>>>
>>> (kicad_pcb
>>>   (version 3)
>>>   (host pcbnew "(2013-03-19 BZR 4004)-stable")
>>>
>>>
>>> I am new to s-expressions: Why are some of the strings surrounded by
>>> quotes "..." and some are not? Do the strings without quotation marks mean
>>> variable or similar?
>>>
>>> Thanks
>>>
>>> On Thu, Mar 28, 2013 at 5:49 PM, Senthil Seveelavanan <
>>> s.seveelavanan@xxxxxxxxx> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Does any python code exist to assist the parsing of the new .kicad_pcb
>>>> pcbnew s-expression based file format? I want to write a simple script to
>>>> get/set the placement of tracks/vias etc.
>>>>
>>>> Thanks
>>>>
>>>> Senthil
>>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References