DownloadLink contains download archive with
all my plugins.
Only works on the latest DFHack r3 (see the dfhack thread). Follow the instructions in the included readme for installation. The relevant file for just this plugin is getplants.plug.*I've added some functionality to the existing getplants plugin to automate wood cutting in a similar way to how workflow automates production. You can set minimum and maximum thresholds for how many logs you want in stock and (when enabled) the plugin will run a cycle (once every dwarf day) that designates or undesignates trees to keep your stores within these boundaries. You can specify burrows to restrict chopping to, or let the plugin designate all revealed trees on the map. The latter is not as drastic as it sounds because the dwarves will pick the closest trees to chop first; the once a day designation cycle will designate new trees that grow close by so they aren't going to wander needlessly.
You can bring up the control screen from an option that appears when you go into the standard chopping designation menu or you can add a keybinding for "getplants autochop".
The left hand side lists your burrows. By default none are selected, so the plugin will chop from the whole map (revealed tiles only). You can toggle on any number of burrows and the plugin will only designate inside those burrows. Your dwarves don't need to be assigned to any burrows, they are just a way of marking areas for the plugin to designate in. The plugin must be enabled with (a) before it runs its daily cycle. The options (d) and (u) allows you to manually designate or undesignate all trees right away (if burrows are selected these actions will only apply within them). This might be useful when a siege starts, etc.
The lowercase and uppercase hotkeys for the Min and Max thresholds adjust them in units of 1 or 10 respectively.
The two final figures are how many logs you currently have in stock and how many trees are marked for chopping. When the maximum threshold is reached, all trees are unmarked; when the stock level drops below the minimum, all trees are marked.
Note that like workflow, the plugin doesn't count logs assigned to jobs as being currently in stock. This includes logs assigned to be hauled to stockpiles. This means that if you have a lot of woodcutters and haulers you're likely to overshoot the maximum threshold as the plugin's records will lag behind the true log count. So set your maximum lower than you really want it. I'll try to improve this accuracy in a future version.