Dimension tool (as in sketchup)
 1-10  …  31-50  51-70  71-90  91-110  111-130  131-138

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: 63 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

Previous
Next
 From:  christian (CHRI)
7403.75 In reply to 7403.74 
Hi Mik


About length of line...

Since version 0.9.2015.07.06 you need to use the new Mode (with CTRL) with arrows 4 and 5

please take a look at the post of Max ( 4 jul 2015 )

same thing with mode 6

clic on the picture below to see my example .

Chri

EDITED: 10 Jul 2015 by CHRI

Image Attachments:
Size: 310.3 KB, Downloaded: 63 times, Dimensions: 650x404px
  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.76 In reply to 7403.75 
hi

Small change in the script _Dimensions.htm to increase decimal
( SUBSTITUTE 0 BY 2 IN THE SCRIPT )

clic on the picture below to see my example .

Chri

EDITED: 11 Jul 2015 by CHRI

Image Attachments:
Size: 26.8 KB, Downloaded: 87 times, Dimensions: 574x336px
Size: 27.7 KB, Downloaded: 81 times, Dimensions: 599x330px
Size: 17.8 KB, Downloaded: 69 times, Dimensions: 365x189px
  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.77 
Hi Chri,

thank you for post.

Length of dimension line in my first version of Arrow type 5 was controlled by distance between "first click" and "second click". No problem with it when you use it for radius length which is larger than text length. The problem appears typically if Scale value is high and radius small, scale value 40 + radius 1 mm for instance, contrariwise with large radius (100 mm) the length of dimension line is 100 mm as well and it's uselessly long. Please see picture "Old version" in my previous post for example.

In new version you can use the maximal Scale value + minimal or large radius and the length of the line will be a bit longer than text length, exactly 2x longer than arrow length :)

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

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7403.78 In reply to 7403.77 
Hi Mik,

unfortunatelly your last changes broke type 5 in the circular mode. I can't accept it. I think it will be better if you create a fork of my script using your identification instead of continuing version numeration of my script. For example: v.0.95mik.
  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.79 In reply to 7403.78 
hi MAX

Very great job !

What do you think about this new add :
by picking 3 points and use * comment , draw a comment on the last entitie of a broken line .

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.80 In reply to 7403.79 
May be ...

text instead of code

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:  wastzzz
7403.81 
While this is a very well written and useful script for now, I really hope there will be a real dimension element in the future, something that when exported in dxf can be recognized by other software (such as rhino or AutoCAD). This one is a really good idea about the approach it could have, I like the "what you see is what you get".
M.
  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.82 In reply to 7403.81 
7403.81
While this is a very well written and useful script for now, I really hope there will be a real dimension element in the future, something that when exported in dxf can be recognized by other software (such as rhino or AutoCAD). This one is a really good idea about the approach it could have, I like the "what you see is what you get".
M.

---------------------------------------
Hi wastzzz

I agree with you .
You can also note that actualy , measurement is also not interactive with drawing change ...
but this script of Max is already a magnificent improvement !

Best regards

Chri from france




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:  Frenchy Pilou (PILOU)
7403.83 
And if you want an another Scale Cursor number ! ;)
From here http://moi3d.com/forum/index.php?webtag=MOI&msg=7492.4

<< you can edit the .htm file and change the range values for the slider to make it permamently go between 0 and 20 or similar.

Open the file in a text editor and find the moi:Slider element in there, the ranges are set by the values min="" mid="" and max="" or similar.

If you set them to min="0.0" mid="100.0" max="20.0" then your slider will go between 0 and 20.

EDITED: 12 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.84 
v.0.97

Select line/curve/edge and then run the script ;)

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.85 In reply to 7403.84 
Seems terrific! Bravo! :)
Works like a charm!
And with your _patternselection we can make some Dash curves! ;)
http://moi3d.com/forum/index.php?webtag=MOI&msg=6518.11

maybe an automatic dashed Lines / Curves dimensions ?



French Version http://moiscript.weebly.com/cotations.html

EDITED: 12 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:  Mik (MIKULAS)
7403.86 In reply to 7403.78 
Hi Max,

>unfortunatelly your last changes broke type 5 in the circular mode.

May I kindly ask you what do you mean? It seems to me that type 5 works in same way in version 0.94 as well as 0.95. I noticed only that the type 5 works a bit different in non circular mode in comparison to circular mode - second click cannot be done in centre of radius, but if the second click is done inside of circle the dimension is correct. The last change is concerning only dimension line length and Scale range, because I didn't like uselessly long dimension line with large radius.



Regarding numeration... I have absolute zero experiences with script writing as I mentioned in some of my previous post; therefore numeration is new for me as well. I've tried only adjust your script for my usage only and because I wanted to share it here in the forum I used continuing numeration in order to differentiate my interference. Sorry for my unfamiliarity with that, but if you mean that such adjusting doesn't correspond to your concept please correct it or delete it, because I have no ambition to use any my identification in your script. I wouldn't take the liberty of doing this at all, because I strongly respect for your work :-)

Kind regards,

Mik

EDITED: 12 Jul 2015 by MIKULAS


  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.87 In reply to 7403.86 
Hi Max,

I know already what you meant :-)

The misunderstanding was based on my "BC" usage of type 4 and 5. I used for outer radius type 5, but in circular mode it make sense to use type 4 now, exactly as Chri posted in 7403.75.

var "BC" = "before circular mode" :-)

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

Previous
Next
 From:  christian (CHRI)
7403.88 In reply to 7403.84 
hi Max

in french : BRAVO monsieur SMIRNOV , vous etes un grand monsieur !

Many thanks MAX , you are great ! - Максим, спасибо

Chri





EDITED: 9 Jan 2021 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.89 In reply to 7403.88 

  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.90 In reply to 7403.89 
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
 

Reply to All Reply to All

 

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