Dimension tool (as in sketchup)
 1-14  15-34  35-54  55-74  75-94  95-114  …  135-138

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.55 In reply to 7403.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! :)

EDITED: 5 Jul 2015 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.56 In reply to 7403.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  wastzzz
7403.57 In reply to 7403.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7403.58 In reply to 7403.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.59 In reply to 7403.58 
<< it will make curve text rather than surface
And for the Arrows ?
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.60 In reply to 7403.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.61 In reply to 7403.60 
No problem! :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  christian (CHRI)
7403.62 In reply to 7403.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

EDITED: 6 Jul 2015 by CHRI

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  christian (CHRI)
7403.63 In reply to 7403.62 



Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.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.

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.66 In reply to 7403.64 
<< Of course there will be degrees instead of cm.

And also i suppose any text you want? (with the help of "|" and "*") ;)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.67 In reply to 7403.66 
Pilou, yes.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.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 )
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.69 

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.70 In reply to 7403.69 
Cool but how it's work ? :)
I see a new Type 6 but...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  blowlamp
7403.71 In reply to 7403.70 
Use Arrow type 6 and press the CTRL key whilst clicking on the corner point.


Martin.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.72 In reply to 7403.71 
Must be another thing because that dimension length not angle! ;)



Ah I have found! You must disable Units! :)



Ps Does it be possible to dimension a curve ?
(maybe in connexion with CurveLengthBeingDrawn ?
or CurveLength?

script: /* Show CurveLengthBeingDrawn */ try { moi.ui.commandUI.setInterval( 'var crvs = moi.geometryDatabase.getObjects().getCurves(); var len = 0.0; if ( crvs.length > 0 ) { len = crvs.item(crvs.length-1).getLength(); } if ( !window["_crvdistlabel"] ) { document.body.insertAdjacentHTML( "beforeEnd", "
" ); } _crvdistlabel.innerText = len.toFixed(4);', 250 ); } catch(e) {}

script:/* Calculate length of selected curves and copy to the clipboard as text */ var crvs = moi.geometryDatabase.getSelectedObjects().getCurves(); var len = 0.0; for ( var i = 0; i < crvs.length; ++i ) len += crvs.item(i).getLength(); moi.copyTextToClipboard( len );

Something like this but with the Arrowline following the curve! :)



French version! :) http://moiscript.weebly.com/cotations.html



Pss We can't dimension an arc circle >180° !

EDITED: 10 Jul 2015 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Yuan
7403.73 
Great job Max, Thanks!
-Yuan

EDITED: 9 Jul 2015 by YUAN

Image Attachments:
Size: 145 KB, Downloaded: 61 times, Dimensions: 1035x788px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mik (MIKULAS)
7403.74 
Hi Max,

angle measurements is excellent feature!

Thank you very much.

I've adjusted slightly the function of Arrow type 5. In new version the length of line is controlled by text length, see bellow please.

Old version:



New version:



I've increased the Scale value to 100 as well, because 40 was not sufficient for bigger models.

Thanks again for perfect script.

Mik

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-14  15-34  35-54  55-74  75-94  95-114  115-134  135-138