I'd like to have a macro that finds the thickest area of any given part. This is helpful because in the injection molding process, the cooling time is directly dependent on the thickest area of the part. For instance, if the part is a solid cylinder whose length is greater than the diameter. The macro should be able to return the thickness of the part (the dimension equal to the diameter) and not the full length of the cylinder.
Expanding upon that concept, the macro should be able to handle complex parts beyond simple cylinders. This macro is not intended to be used in an assembly.