mapsymap schrieb:
THANK YOU makko74 It work but one more thing. How can i limit it to 4 decimal places only or round to 4 decimal places. Also when i enter #1. in notes G90G10L12P1R1 appears, i would like it to show the decimal point too. G90G10L12P1R1. (decimal point)
if i remember me right then has Laurens answered a similar question from you here on this forum.
create a new format ( up in the post, if is there nothing similar in your post ) you also can look into the post-help file under createFormat
var rFormat = createFormat({decimals:4, forceDecimal:true});
and than change the line:
rValue = ( (posExc == ( posNom - 1 )) && ( posExc > -1 ) ) ? rValue : "#" + rValue;
to
rValue = ( (posExc == ( posNom - 1 )) && ( posExc > -1 ) ) ? rFormat.format( rValue ) : "#" + rFormat.format( rValue );
ALSO NOT TESTED
/Mario
Inventor CAM(Ultimate) user --- Inventor Professional 2021.2 + Inventor CAM Ultimate 8.1.2.21785