MoI discussion forum
MoI discussion forum

Full Version: Dimension tool (as in sketchup)

Show messages:  1-19  20-39  40-59  60-79  80-99  100-119  120-138

From: Frenchy Pilou (PILOU)
1 Jul 2015   [#40] In reply to [#39]
Neat add!
French Version UpDated http://moiscript.weebly.com/cotations.html

From: 3dcnc
1 Jul 2015   [#41]
This is so helpful. Thanks so much Max for your time.Theses scripts really help fill some missing features without changing the program.
From: Mik (MIKULAS)
1 Jul 2015   [#42]
...and twin of type 4 -> type 5 :-)


Attachments:
Dimensions.v.0.8.2015.07.01.zip

Image Attachments:
Arrow type 5.gif 


From: Frenchy Pilou (PILOU)
1 Jul 2015   [#43] In reply to [#42]
Does it not possible to input a test inside the code for have only a Type 4 ?
Pseudo Code : When 180° > Arrow Angle > 360° reverse Position Text ...


From: Mik (MIKULAS)
1 Jul 2015   [#44]
Hi Pilou,

it's question for MAX, I have no experiences with script writing unfortunately. I've only analysed Max's script and analogically added new arrow types.
I've only noticed that arrows are created as polylines in Cartesian coordinate system and then it makes surface from polyline.
Position of text is done by vector of direction probably when the arrow line is created (from left to right and vice versa).

BTW Type 5 is can be used for radius measurement as well. In "unit" text box it has to be paste " R| "




Mik

Image Attachments:
Arrow type 5_2.gif 


From: Mike (MGG942)
2 Jul 2015   [#45]
Great script, Max, very useful.
From: chippwalters
2 Jul 2015   [#46]
Max should get some sort of "USER OF THE DECADE" award for MoI. Great job!!!
From: Max Smirnov (SMIRNOV)
3 Jul 2015   [#47] In reply to [#43]
Frenchy Pilou
>> Pseudo Code : When 180° > Arrow Angle > 360° reverse Position Text ...

Now it looks better :)
From: Frenchy Pilou (PILOU)
3 Jul 2015   [#48] In reply to [#47]
I am confident! :)

Seems cool!




French version
http://moiscript.weebly.com/cotations.html
From: wastzzz
4 Jul 2015   [#49]
Can the output be in curves instead of surfaces?
From: christian (CHRI)
4 Jul 2015   [#50] In reply to [#49]
hello

formidable efficiency.

Well done guys and applause to Max !!!

Chri







Image Attachments:
1.gif  2.gif 


From: Max Smirnov (SMIRNOV)
4 Jul 2015   [#51]
;) v.0.9 wil be soon

From: Frenchy Pilou (PILOU)
4 Jul 2015   [#52]
What a teasing! :)
From: Mike (MGG942)
4 Jul 2015   [#53] In reply to [#50]
Very nice demo, Christian.
From: Max Smirnov (SMIRNOV)
5 Jul 2015   [#54]
Version 0.9
Added circular mode.
In fact I made it for angles, but unfortunatelly I had no free time this weekend to write that.
To enter this mode hold the control button while selecting a first point.

In this mode a length of the arrow will be locked to a circle diameter (arrow type 1-3), or radius (arrow type 4-5).
From: Frenchy Pilou (PILOU)
5 Jul 2015   [#55] In reply to [#54]
Cool!

But there is a little glitch with this new Mode(with CTRL): when you make a second click on the first click!
All disapears for ever in the space dimension with also the figure! :)


From: Max Smirnov (SMIRNOV)
6 Jul 2015   [#56] In reply to [#55]
Hmm, my script doesn't interact with any objects except of dimension lines. I looks like a MoI bug, caused by bug in my script (division by zero). Anyway it's my fault. I've already fixed it. I'll upload new version today evening.
From: wastzzz
6 Jul 2015   [#57] In reply to [#54]
Please, is it possible to get the output in curves instead of surfaces? I think it's more lightweight and it's possible to export them without using hidden line removal algorithm.
Max.
From: Michael Gibson
6 Jul 2015   [#58] In reply to [#57]
Hi Max, re: make curves instead of surfaces, open the file _Dimensions.htm in a text editor, and edit the line that creates the text factory. It's this one here:

var text = factory ('text', moi.VectorMath.createTopFrame(), tx, fontName, false, false, 'surfaces', textSize, 0, false);

Edit that to replace 'surfaces' with 'curves' and then it will make curve text rather than surface text.

- Michael
From: Frenchy Pilou (PILOU)
6 Jul 2015   [#59] In reply to [#58]
<< it will make curve text rather than surface
And for the Arrows ?

Show messages:  1-19  20-39  40-59  60-79  80-99  100-119  120-138