MoI discussion forum
MoI discussion forum

Full Version: Dimension tool (as in sketchup)

Show messages:  1-15  …  56-75  76-95  96-115  116-135  136-138

From: Frenchy Pilou (PILOU)
2 Apr 2016   [#116] In reply to [#115]
I am affraid not yet but just select and move it! ;)
From: Michael Gibson
2 Apr 2016   [#117] In reply to [#115]
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)
3 Apr 2016   [#118] In reply to [#117]
Cool ! Will be added to the manual!

Done! http://moiscript.weebly.com/cotations.html :)


From: Max Smirnov (SMIRNOV)
3 Apr 2016   [#119]
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)
4 Apr 2016   [#120] In reply to [#119]
Maybe input this on the Dimension Menu will be very fine! ;)
From: GonzoRus
4 Apr 2016   [#121] In reply to [#120]
"Maybe input this on the Dimension Menu will be very fine! ;)"

YES!!! it would be amazing!
From: GonzoRus
15 Apr 2016   [#122] In reply to [#121]
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 


From: karlgroendal (KARL_GROENDAL)
17 Oct 2016   [#123] In reply to [#5]

Hi

Will the script work on Mac - and how?

Thanks :)


From: Michael Gibson
17 Oct 2016   [#124] In reply to [#123]
Hi Karl, yes the dimension script will work on the Mac version as well.

You can download the latest version of the script from Max's site here: http://moi.maxsm.net/media/files/ the one you want is named Dimensions.v.1.0.2015.09.14.zip

Then for installation instructions please refer to FAQ #1, how do I install a plug-in script? .

- Michael
From: none (EVALON)
30 Nov 2017   [#125]

Hi All,

I have read this thread with some interest as it may be feasible for me to somehow export MoI3D files with dimensions. I also noticed that Michael had/have this as a potential part of a V4 release ...

To this end: Is there any news on whether or not this will be part of a V4 release - and if so when is the V4 release due?

Have a good day ;-)

Jesper


From: Michael Gibson
30 Nov 2017   [#126] In reply to [#125]
Hi Jesper, I can't really promise 100% that it will be in v4 but it is one of the priorities that I want to work on. I won't really know how it will go though until I've been able to work on it some.

The V4 beta test period just started a few weeks ago, and could last anywhere between 4 to 9 months before the v4 final version is ready.

Right now the only things I can say for sure that will be in v4 are that it will be 64-bit and have a native Mac version.

- Michael
From: Frenchy Pilou (PILOU)
30 Nov 2017   [#127]
Seems Dimension by Max Smirnov works also with the Beta of the 27 November 2017!
From: Apophis
1 Dec 2017   [#128]
Hello,

It dosnĀ“t work with V4 beta (18.11.). Invalid function argument 1 , line 1
Only for me?
From: none (EVALON)
1 Dec 2017   [#129] In reply to [#126]
Hi Michael - as always thanks for your prompt and helpful reply ;-) ... I will look out for what happens with the v4 as it progresses ... Have a good weekend when you get to that ... Jesper
From: christian (CHRI)
1 Dec 2017   [#130] In reply to [#128]
HI

I also have a problem when :

1 - i call this fonction (TypeError...)
2 - i select an objet and call this fonction (Invalid index ...)
3 - i would like th draw a dimension ( tab is empty , color line is white)

chri
From: eric (ERICCLOUGH)
1 Dec 2017   [#131]
Hi
A dumb question.
Is there a way to get Max's dimensions to display feet/inches/fractions?
thanks,
eric
From: christian (CHRI)
1 Dec 2017   [#132] In reply to [#131]
hi eric

Please take a look to the previous post 7403.93

chri
From: Max Smirnov (SMIRNOV)
24 Feb 2018   [#133]
Dimensions v1.1
Improved compatibility with MoI v4
Added font change menu

http://moi.maxsm.net/item/37
From: Finema
24 Feb 2018   [#134] In reply to [#133]
Great !
Thanks a lot Max
From: pafurijaz
24 Feb 2018   [#135] In reply to [#133]
Thank you so much, this script is too useful ..

Show messages:  1-15  …  56-75  76-95  96-115  116-135  136-138