Author Topic: Any KiCad internals experts?  (Read 1901 times)

0 Members and 1 Guest are viewing this topic.

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 5662
  • Country: us
    • Personal site
Any KiCad internals experts?
« on: December 15, 2017, 07:06:31 pm »
I'm trying to parse KiCad PCB files (new format) and generally it is pretty well done, but there are some things that are not clear.

For now, I don't understand the difference between "gr_line" and "fp_line" and other drawing commands with corresponding prefixes.

It looks like fp_xxx are used in libraries (meaning "footprint"?) and gr_xxx are used for board-level elements ("graphic"?). gr_xxx seem to have an angle parameter, for which I can't figure out a setting in the KiCad, so I don't know what it means or how it is supposed to be used.

I'm sure I'll have more questions.
Alex
 

Offline hermit

  • Frequent Contributor
  • **
  • Posts: 470
  • Country: us
Re: Any KiCad internals experts?
« Reply #1 on: December 15, 2017, 07:15:52 pm »
The Kicad forum is pretty good for stuff like this.  There are several people that write scripts that would probably know the answers to your questions and you'd get good answers in pretty short order.  I'm not a coder and I mainly stay out of the files.   
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 5662
  • Country: us
    • Personal site
Re: Any KiCad internals experts?
« Reply #2 on: December 15, 2017, 07:17:19 pm »
The Kicad forum is pretty good for stuff like this.  There are several people that write scripts that would probably know the answers to your questions and you'd get good answers in pretty short order.  I'm not a coder and I mainly stay out of the files.   
Can you give a link to a specific forum for developers? The search returns a lot of results, and it is not trivial to differentiate them.
Alex
 

Offline chicken

  • Regular Contributor
  • *
  • Posts: 219
  • Country: us
  • Rusty Coder
Re: Any KiCad internals experts?
« Reply #3 on: December 15, 2017, 07:23:22 pm »
This is IMO the best forum for KiCad, with several developers active on it:
https://forum.kicad.info/

The other venue is the developer mailing list, though it is mostly focused on developing Kicad itself:
https://lists.launchpad.net/kicad-developers/
 

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1209
  • Country: es
    • ElektroQuark
Re: Any KiCad internals experts?
« Reply #4 on: December 15, 2017, 09:42:45 pm »

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 5662
  • Country: us
    • Personal site
Re: Any KiCad internals experts?
« Reply #5 on: December 15, 2017, 09:51:19 pm »
Take a look here:
Those are only old format descriptions. There is a PDF that includes new formats, but it does not go into details of what individual fields in the commands mean, just lists them.

Based on quick scan of the code, it looks like my assumption is correct. I still don't understand the need for this distinction, but for now, I'm ok. I may see it as I go along.
Alex
 

Offline hermit

  • Frequent Contributor
  • **
  • Posts: 470
  • Country: us
Re: Any KiCad internals experts?
« Reply #6 on: December 15, 2017, 11:08:23 pm »
This is IMO the best forum for KiCad, with several developers active on it:
https://forum.kicad.info/

The other venue is the developer mailing list, though it is mostly focused on developing Kicad itself:
https://lists.launchpad.net/kicad-developers/
This is the forum I was thinking of.  People doing add on scripts frequent it and know the ins and outs of manipulating and understanding the data format.
 

Offline donotdespisethesnake

  • Frequent Contributor
  • **
  • Posts: 859
  • Country: gb
  • Embedded stuff
Re: Any KiCad internals experts?
« Reply #7 on: December 16, 2017, 02:44:06 am »
The new file formats are barely documented. I did consider writing something, but it would not be definitive, and KiCad devs have a loose approach to versioning which makes documenting a nightmare. I usually end up looking at the source and building small test cases.

FWIW, there is http://bazaar.launchpad.net/~stambaughw/kicad/doc-read-only/files/head:/doc/help/file_formats/docs_src/
Bob
"All you said is just a bunch of opinions."
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf