new beta-stealth mode

 From:  Michael Gibson
2703.12 In reply to 2703.11 
Hi Danny, put this on a shortcut key to try:

code:
script: /* Show length of current curve being drawn */ try { moi.ui.commandUI.setInterval( 'var crvs = moi.geometryDatabase.getObjects().getCurves(); var len = 0.0; if ( crvs.length > 0 ) { len = crvs.item(crvs.length-1).getLength(); } if ( !window["_crvdistlabel"] ) { document.body.insertAdjacentHTML( "beforeEnd", "<div id=_crvdistlabel></div>" ); } _crvdistlabel.innerText = len.toFixed(4);', 250 ); } catch(e) {}


(EDIT: updated code to remove HTML escaping)


What that will do is start a timer and continuously display the
length of the curve that you are currently drawing in the bottom
of the command options area (below the Cancel button in the
upper-right area of the main MoI window).

Because it is on a timer, it will continue to dynamically update
after you have triggered it. It will go away automatically when
the command ends.


That can be triggered for any curve command, like freeform
curve, rectangle, arc, circle, ellipse, helix, etc... for example
if you trigger it while in the circle command it will display the
perimeter of the circle there.

I think the only command it will not work fully with is Polyline, it
will unfortunately only get the length of the last line segment of
the polyline due to the way the Polyline command works (as you
draw a polyline, there are actually 2 temporary curves created
while you are drawing, so that you can snap to previous midpoints
or perpendiculars on the same polyline you are drawing). It would
take some more work to make it work right there.

Is that the kind of thing you were thinking of?

- Michael

EDITED: 21 Jun 2009 by MICHAEL GIBSON