From: Mindset (IGNITER)
/* Get lengths of all selected curves and copy to clipboard */
var crv_list = moi.geometryDatabase.getSelectedObjects().getCurves(); var result = '';
for (var i = 0; i < crv_list.length; i++) {
var crv = crv_list.item(i);
var len = crv.getLength();
result += moi.ui.formatCoordinate(len) + '\n';
} moi.copyTextToClipboard(result);
From: Frenchy Pilou (PILOU)
Cool variation of the Details Button when you have selected something! ;)
From: stefano (LIGHTWAVE)
updated this script a bit...
> now gives pop up result and shows mulitple units mm / cm / metres
> lists named objects if they are named
> copies to clipboard
> formats good for excel
"CurveLength.js" attached.
ScriptName: CurveLength
Attachments:
CurveLength.js
Image Attachments:
MOI3d_CurveLengths1.jpg
MoI_3_CurveLength_Named.png