Hopefully, this is proper place to post.
I currently have a simple Tcl script that flattens the hierarchy and streams out in batch mode. This was done farely simply with some basic commands and options. Now, I want to merge all the different shapes that are on a particular layer.datatype into the fewest polygons as possible on same layer.datatype in batch mode. I don't use this tool very often, but it is extremely power it seems for this sort of thing. Any code to do this or some tips on the commands or program structure to do this would be appreciated. Thanks.