// This macro draws the Feret diameter of the current selection. List.setMeasurements; x1 = List.getValue("FeretX"); y1 = List.getValue("FeretY"); length = List.getValue("Feret"); degrees = List.getValue("FeretAngle"); if (degrees>90) degrees -= 180; angle = degrees*PI/180; x2 = x1 + cos(angle)*length; y2 = y1 - sin(angle)*length; setColor("red"); Overlay.drawLine(x1, y1, x2, y2); Overlay.show(); showStatus("angle="+degrees);