Dimension tool (as in sketchup)
 1-20  21-40  41-60  61-80  …  121-138

Previous
Next
 From:  eric (ERICCLOUGH)
7403.21 In reply to 7403.14 
Hi Max ..

Does this insert into the original script and if so, where?

Or does it replace all or part of it?

thanks,
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:  Frenchy Pilou (PILOU)
7403.22 In reply to 7403.21 
Maybe like this
Just put it inside the Right Columm of a new ShortCut
but write "script:" on the beginning of the line!
So
script:var cln =0, gd = moi.geometryDatabase, cl = gd.getObjects().getConstructionLines(), cll = cl.length;
for (var i=0; i<cll; i++) if (!cl.item(i).isTemporary) cln++; if (cln == cll) { gd.removeObjects(cl) } else { cl.setProperty( "isTemporary", false ) }

Launch the Dimension Script
Call the script of persistant lines
Draw your helper lines
Draw your Dimension
Draw your helper lines
Draw your Dimension
etc
ps I have no more the Button OK that is normal ?

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.23 In reply to 7403.5 
Great job Max, thanks for making this available!

- 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:  Max Smirnov (SMIRNOV)
7403.24 
Added new arrow types.
The type can be switched dynamicaly by pressing "1", "2", "3" keyboard keys.

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.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?
  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.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
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-40  41-60  61-80  81-100  …  121-138