Dimension tool (as in sketchup)
 1-5  6-25  26-45  46-65  66-85  …  126-138

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

EDITED: 29 Jun 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:  Michael Gibson
7403.27 In reply to 7403.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
  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:  eric (ERICCLOUGH)
7403.28 In reply to 7403.22 
Thank you Frenchy ..

eric
  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.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
  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.30 
A well made script. Quite useful while we wait for a proper dimension element.
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:  Frenchy Pilou (PILOU)
7403.31 

:)

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

You can make that but...


EDITED: 30 Jun 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.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!

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:  phlatt5th (P5TH)
7403.33 In reply to 7403.32 
Max, brilliant!! Thanks again for the tweaks to the already awesome! script.
Cheers.
  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.34 
Hi Max,

it works perfectly.



Many thanks!

Mik
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.35 
@Max
Excellent! Bravo!
French Version Updated! http://moiscript.weebly.com/cotations.html

EDITED: 30 Jun 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:  trc (TERRYC)
7403.36 In reply to 7403.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
  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:  Finema
7403.37 
Great tool !
many thanks 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

Message 7403.38 deleted 1 Jul 2015 by MIKULAS

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

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



Kind regards,

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:  Frenchy Pilou (PILOU)
7403.40 In reply to 7403.39 
Neat add!
French Version UpDated http://moiscript.weebly.com/cotations.html

EDITED: 1 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:  3dcnc
7403.41 
This is so helpful. Thanks so much Max for your time.Theses scripts really help fill some missing features without changing the program.
  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.42 
...and twin of type 4 -> type 5 :-)



  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.43 In reply to 7403.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 ...

EDITED: 1 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.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
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:  Mike (MGG942)
7403.45 
Great script, Max, very useful.
  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-5  6-25  26-45  46-65  66-85  86-105  …  126-138