MoI discussion forum
MoI discussion forum

Full Version: Dimension tool (as in sketchup)

Show messages:  1-10  11-30  31-50  51-70  71-90  91-110  111-130  131-138

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 ?
From: Max Smirnov (SMIRNOV)
6 Jul 2015   [#60] In reply to [#59]
>>And for the Arrows ?

I don't like this idea. If you need curves you can click Dimensions style, select all, select edges, ctrl+c, ctrl+v. It will take 3-4 seconds.
My script works correctly with surfaces only. If you change surfaces to curves, snapping will be enabled for all objects including anotations and dimension lines.
From: Frenchy Pilou (PILOU)
6 Jul 2015   [#61] In reply to [#60]
No problem! :)
From: christian (CHRI)
6 Jul 2015   [#62] In reply to [#55]
it is better to turn outside the circle , explanation on the next POST :
il est préférable de tourner en dehors du cercle, explication dans le prochain POST:

Chri
From: christian (CHRI)
6 Jul 2015   [#63] In reply to [#62]



Image Attachments:
NO.gif  YES.gif 


From: Max Smirnov (SMIRNOV)
6 Jul 2015   [#64]
v.0.9a (fixed: division by zero bug)

This will be in the next version. Of course there will be degrees instead of cm.

From: Max Smirnov (SMIRNOV)
6 Jul 2015   [#65]
wastzzz
replace line: arrow = concat ( factory ('planarsrf', arrow), text);
with: arrow = concat (arrow, text);

christian
Pilou wrote about this problem. It has been fixed.
From: Frenchy Pilou (PILOU)
6 Jul 2015   [#66] In reply to [#64]
<< Of course there will be degrees instead of cm.

And also i suppose any text you want? (with the help of "|" and "*") ;)
From: Max Smirnov (SMIRNOV)
6 Jul 2015   [#67] In reply to [#66]
Pilou, yes.
From: Frenchy Pilou (PILOU)
6 Jul 2015   [#68]
Another little thing! :)

When you increase the line ( with your option Concat above) you can have some cool forms!

But the position of text is not following! (sure I can move it in a second but when you have 100 dimensions... ;)



Can we have an enter Box of distance text or similar ? (text can be inside or outside in this last case )
From: Max Smirnov (SMIRNOV)
9 Jul 2015   [#69]

From: Frenchy Pilou (PILOU)
9 Jul 2015   [#70] In reply to [#69]
Cool but how it's work ? :)
I see a new Type 6 but...

Show messages:  1-10  11-30  31-50  51-70  71-90  91-110  111-130  131-138