MoI discussion forum
MoI discussion forum

Full Version: Dimension tool (as in sketchup)

Show messages:  1-2  3-22  23-42  43-62  63-82  83-102  …  123-138

From: Michael Gibson
29 Jun 2015   [#23] In reply to [#5]
Great job Max, thanks for making this available!

- Michael
From: Max Smirnov (SMIRNOV)
29 Jun 2015   [#24]
Added new arrow types.
The type can be switched dynamicaly by pressing "1", "2", "3" keyboard keys.

From: Max Smirnov (SMIRNOV)
29 Jun 2015   [#25]
Frenchy Pilou
> I have no more the Button OK that is normal ?
Yes, it's normal.

eric
>> Does this insert into the original script and if so, where?
>> Or does it replace all or part of it?
No, it's a separate script, which can be useful with Dimensions script.
As Pilou said above, you can bind it to keyboard button.

Michael
Thank you :)
Could you help me? I have problem with pointpicker snapping. Is there a way to exclude all objects with "Dimensions" style from the object snapping list?
From: Frenchy Pilou (PILOU)
29 Jun 2015   [#26]
French version Updated! :)
http://moiscript.weebly.com/cotations.html


Alt + 0216 = Ø ;)

When I draw something on a surface in the 3D view
dimension Text, arraws are not parallal to this surface!
I must draw inside the View Face!
From: Michael Gibson
29 Jun 2015   [#27] In reply to [#25]
Hi Max,

> Could you help me? I have problem with pointpicker snapping. Is there a way to exclude
> all objects with "Dimensions" style from the object snapping list?

You can do that by making a pass through those objects before using the pointpicker, and turn off the "hit test" flag on each of those objects using: obj.setHitTest( false );

If an object is set with the "no hit test" flag, it should cause the pointpicker to skip over it and not target any snaps on it, and also it won't be targeted for selection either. Then if you want it to behave normally later on afterwards you'll need to set obj.setHitTest( true ); on those same objects to reset it.

If you do not have the objects already separated out somehow, you can find the style index of the "Dimensions" style by using:

code:
var style = moi.geometryDatabase.findStyle( 'Dimensions', false /*CreateIfNotFound*/ );
if ( style )
{
    var index = style.index;

     // Now look for objects that have obj.styleIndex == index
}


Hope that does what you need!

- Michael
From: eric (ERICCLOUGH)
29 Jun 2015   [#28] In reply to [#22]
Thank you Frenchy ..

eric
From: Mik (MIKULAS)
30 Jun 2015   [#29]
Hi Max,

arrow type is nice feature.

...as Frenchy imply, it would be very useful to have two additional checkboxes (same as Unit) "prefix" and "suffix" with text field for pasting symbols or additional text in front and behind of dimensions.

... and Arc drawing with angle value would be absolutely fantastic :-)

Excellent job, thank you.

Mik
From: wastzzz
30 Jun 2015   [#30]
A well made script. Quite useful while we wait for a proper dimension element.
M.
From: Frenchy Pilou (PILOU)
30 Jun 2015   [#31]

:)

Someone ask text before the dimension, also text in replacement of the dimension! (here text is after)

You can make that but...



From: Max Smirnov (SMIRNOV)
30 Jun 2015   [#32]
Michael
>obj.setHitTest( false );
Yes! That's exactly what I needed. Thank you! :)

Mik
>it would be very useful to have two additional checkboxes (same as Unit) "prefix" and "suffix"
I've made some changes in the new version ;)

v0.6
Snapping disabled for dimension lines (now script works exacly as planned)
Added more hidden features:
Prefix can be setted by using split symbol | in the units field. Example: R|mm -> R 15.1 mm

Pilou
>>Someone ask text before the dimension, also text in replacement of the dimension! (here text is after)
Special for you. :) Add * in the beginning. Example: *3/4 de pieds d'alouette!
From: phlatt5th (P5TH)
30 Jun 2015   [#33] In reply to [#32]
Max, brilliant!! Thanks again for the tweaks to the already awesome! script.
Cheers.
From: Mik (MIKULAS)
30 Jun 2015   [#34]
Hi Max,

it works perfectly.



Many thanks!

Mik

Image Attachments:
Dimensions.jpg 


From: Frenchy Pilou (PILOU)
30 Jun 2015   [#35]
@Max
Excellent! Bravo!
French Version Updated! http://moiscript.weebly.com/cotations.html


From: trc (TERRYC)
30 Jun 2015   [#36] In reply to [#3]
Michael,

Thank you for putting this on your V4 list. Probably not the most fun thing to work on but but man will it put a spin on MOI.

Terry
From: Finema
1 Jul 2015   [#37]
Great tool !
many thanks Max !

Message 7403.38 was deleted


From: Mik (MIKULAS)
1 Jul 2015   [#39]
Hi Max,

I allowed myself to add new arrow type 4, which can be useful for various description in drafts.



Kind regards,

Mik

Attachments:
Dimensions.v.0.7.2015.07.01.zip

Image Attachments:
Dimensions 2.jpg 


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 


Show messages:  1-2  3-22  23-42  43-62  63-82  83-102  …  123-138