Gave up on using Inkscape or Affinity Designer on an image because I realised it would be easier to just generate the SVG with script. This probably says more about me than about Inkscape to be honest.
(the final image: a frontispiece for an edition of The Book of the Thousand Nights and a Night that I’m working on)
@robinwhittleton svg is "simple" enough that this is a valid approach. There are also canvas drawing APIs like gtk's Cairo which can output SVG. This might be easier since you can declare paths, bezier curves etc with a pen with something like python and let it generate the SVG.
@epilys in this case I’d already used Inkscape to manually build a path for each cell, just needed to write out the whole grid with appropriate offsets. But yeah, I should probably look into Cairo a bit more at some point.