I hope to add the functions/attributes to get the maximum,minimum value in the x,y direction of the part.
If it does, there is good things:
In Geometry tab - Craete - Cooling Circuit, The Number of channels can be calculated automatically by inputting the Distance between channel centers.