UUIDs everywhere in the lib files

Hello!

Before I forget: I’m using Kicad 8.0.7 on Ubuntu, April release (I had problems in the past with
intermediate releases, so this time I haven’t installed October release).

I wanted to generate a bunch of footprints using a hand-rolled PHP script that I’m writing
now. I noticed there are UUIDs everywhere, basically for any single stroke. What are they used
for? Just wondering if I have to generate a UUID for every single detail in the file or if I can simply
skip them.

Edit: I’m talking about the .kicad_mod files.

Thanks for any hint!

Try with one item and see how it behaves, maybe just deleting an uuid from an existing KiCad file. It’s possible that KiCad generates the missing Uuids.

From my recent misadventures: you can safely ignore them for making files for kicad to open.

Misadventure if you’re curious : Clunky fabmaster Asc to kicad converter

It’s not far off what you’re doing, but in powershell

As far as I can tell, they don’t matter. KiCad complains if multiple elements have the same UUID and then fixes it for you.
In my autogenerated files the UUID is the current time stamp so that there are no duplicated UUIDs. That solved it for me.