I don't use hex personally but in my opinion Tiled is very good. And since most of its files (tilesets for example) are XML, after you figure out how those are created, you can automate creation of new ones
Also, maybe this will be helpful for your use-case