Curvimeter | Inline scripts

Saturday, 30 May 2015. Posted by: Smirnov
Measures the length of selected curves. The result is copied to the clipboard.
script:/* Curvimeter 1.1 */ var c=moi.geometryDatabase.getSelectedObjects().getCurves(), l=0; for (var f=0; f<c.length; f++) l +=c.Item(f).getLength(); moi.copyTextToClipboard(l); moi.ui.alert('Total length ('+c.length+'): '+l.toFixed(4)*1+' '+moi.geometryDatabase.unitsShortLabel);

CyclicPoly | Scripts

Saturday, 23 May 2015. Posted by: Smirnov