Show messages:
1-2
…
43-62
63-82
83-102
103-122
123-138
From: Max Smirnov (SMIRNOV)
>>Here you must change the "2" with number of decimals wished!
:) Ok, boss
From: Frenchy Pilou (PILOU)
>> :) Ok, boss
You rocks!
French Version :
http://moiscript.weebly.com/cotations.html
PS Here 10...
Seems 14 is the Maximum possible! So suffucient I presume! :)
So maybe you can change the 4 in 14! (line 282) ;)
From: Max Smirnov (SMIRNOV)
No-no-no. :)
In fact nobody uses more than 2 digits after decimal point.
From: Frenchy Pilou (PILOU)
@Max (imum)
You don't know perversity of some geometric's maniacs! :D
So my version will be customized with funny thing max="14" (line 282) :D
From: Frenchy Pilou (PILOU)
And for Type 4 & 5 with CTRL seems we must make this! (THX Chri)
if ( arrowType.value == 4 || arrowType.value == 5 ) { f = moi.VectorMath.createPoint (c.x+dx, c.y+dy, c.z+dz ); fixedDist = round(R, 2); }
by
if ( arrowType.value == 4 || arrowType.value == 5 ) { f = moi.VectorMath.createPoint (c.x+dx, c.y+dy, c.z+dz ); fixedDist = round(R, decimals.value); }
Ps I don't know if all that work for Imperial ? Never used, too complex for me! :(
From: Max Smirnov (SMIRNOV)
Yes. Missed one Round call. Fixed and uploaded.
From: BurrMan
""""""""So my version will be customized with funny thing max="14" (line 282) """""""""""""""
Mine is set to "15" and outputs 15....
I also set my default at 4 and wrote in to default with "units" checked and also to have "in" as the trailer.......
From: Frenchy Pilou (PILOU)
you right 15 seems the ultime limit :)
From: toggi
wow. that script is phantastic. thanks a lot!
that really will save me a lot of time.
From: JL82 (JML82)
the script is not working for me. I got the script error. The language is Finnish.
Image Attachments:
Moi3d-2.JPG
From: Michael Gibson
Hi JL82,
re:
> the script is not working for me. I got the script error.
From the error it looks like you are running MoI version 2, and I think the script requires MoI version 3 in order to run properly.
- Michael
From: JL82 (JML82)
Yes, I have version 2.
From: GonzoRus
Hello everybody.
The distance, the red arrow can be changed? Between the dimension line and digits?
Through editing files "_Dimensions.htm" or "_Dimensions.js"?
Image Attachments:
Change_the_Distance.png
From: Frenchy Pilou (PILOU)
I am affraid not yet but just select and move it! ;)
From: Michael Gibson
Hi GonzoRus,
> The distance, the red arrow can be changed? Between the dimension line and digits?
>
> Through editing files "_Dimensions.htm" or "_Dimensions.js"?
Yes it's possible to change that spacing by editing the _Dimensions.htm file.
Using the latest version Dimensions.v.1.0.2015.09.14.zip which you can get from here:
http://moi.maxsm.net/media/files/ , you would want to modify line #135 which sets the placement of the text.
135: textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/3)/2, 0);
You would want to add something to the 2nd parameter to frame.evaluate(), like this for example (see the bold text for the + 1 that is added):
135: textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/3)/2
+ 1, 0);
- Michael
From: Frenchy Pilou (PILOU)
Cool ! Will be added to the manual!
Done!
http://moiscript.weebly.com/cotations.html :)
From: Max Smirnov (SMIRNOV)
Hi guys :)
This +1 method doesn't work correct in some cases.
It will be better to use the following line:
code:
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/2)/2, 0);
or
code:
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/1)/2, 0);
or
code:
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize*3)/2, 0);
From: Frenchy Pilou (PILOU)
Maybe input this on the Dimension Menu will be very fine! ;)
From: GonzoRus
"Maybe input this on the Dimension Menu will be very fine! ;)"
YES!!! it would be amazing!
From: GonzoRus
Changed line 135
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/1)/2, 0);
The distance from the dimension line has increased.
BUT! The angles are displayed incorrectly.
Image Attachments:
Degrees_not_correct.png
Show messages:
1-2
…
43-62
63-82
83-102
103-122
123-138