Get schematic/layout revision

I am trying to create a python script to generate some documentation. I would like to read the schematic and/or the PCB revision. I have found now a way, to parse the “project_name”.xml file, but as I see not all of my projects has that file. (I do not know why it is missing in case of some projects)
Is there any other way get the schematic/PCB revision?

Are you talking about KiCad? It doesn’t use XML files.

Suggest you Open the PCB file, Schematic file and Kicad file in a Text-Editor - then you’ll see the Info you’re looking for and, thus, know what to do with your Python code…

1 Like

No, I am talking about Altium, just kidding, sure I am talking about KiCAD (version 8), but maybe a plugin created that file.

Thanks for the suggestion, nice, I have never opened those files with text editor.

1 Like

about the only Important thing to know is be sure to use UTF-8 font, to avoid problems…

1 Like

Thank you for the hint. I will keep in mind.