Schematic Python API

Hi,

I know that the schematic file format gets changed, but I would like to know if there exist a file parser for the old schematic format to manipulate fields? I would like to set automatically values of components.

The files are human readable, it’s probably easier to to do some simple regexp magic than to use a 3rd party file parser.

Thank you for reply. The problem is that an empty “manufacturerNo” field in the schematic is not shown in the file. So I have to create a new line in the file

KiField can insert new values into schematics. You can look at the code to see if it can be re-purposed for your needs, or KiField might already do what you want.

2 Likes

@devbisme Thank you for your reply. This script solves the problem!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.