As I say I'm kind of out of it I don't remember the exact syntax required to design forts and I lost all my old csv files of them... But I'll do my best.
I was thinking along the lines of
, , , , ,3, , , , ,
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,d,d,d,3,d,d,d,d,d
d,d,3,3,3,3,3,3,3,d,d
, ,3, , , , , ,3, ,
4,4,2,4,4, ,4,4,2,4,4
4,2,2,2,4, ,4,2,2,2,4
4,2,2,2,4, ,4,2,2,2,4
4,2,2,2,4, ,4,2,2,2,4
4,4,4,4,4, ,4,4,4,4,4
This concept was mostly thought of for editing the CSV file by hand as I don't know how well it could be implemented with export plugins in DF (But you are welcome to try!). Where d would by synonymous with 4 (Cause dig is 4 anyway) and 1 through 7 would be the priority of the dig. Spaces represent where you don't want to dig. The above example (if I've done it right) would clear a path quickly to the bottom of a what will eventually be an 11 by 11 room to construct the rooms and clear the space for the workshops first to quickly get a fort's production up and going.
As for the implementation for the code I'd have to somehow see the code and be lead by the hand to understand it. I know a little python but it's a self taught understanding. I don't know if you would have time for something as silly as that.
Thank you, and I hope that gives some clarity!