Dimension tool (as in sketchup)
 1-8  9-28  29-48  49-68  …  129-138

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.9 In reply to 7403.8 
<< but before first click defining location of dimension arrow head #1.
Ahhh yes! Different than the normal use of a script!
So cool!


<< It's activated after 'first click' for arrowhead #1.
Ahhhh yes! Funny use! So very cool! :)
  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.10 In reply to 7403.5 
Hi ..

Showing my ignorance about scripts ..

How do I install this script and use it ?

Cheers, and 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:  phlatt5th (P5TH)
7403.11 In reply to 7403.5 
Hi Max, thank you for the dimension script it is very useful.
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:  christian (CHRI)
7403.12 In reply to 7403.10 
HI eric (ERICCLOUGH)

first time
You need to copy the two files in the commands folder of MOI

second time
you need to add the shortcut keys and the command :
_dimensions

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:  eric (ERICCLOUGH)
7403.13 In reply to 7403.12 
Thanks Christian,
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:  Max Smirnov (SMIRNOV)
7403.14 
Script update. Fixed few bugs. Changed internal structure. Script modifications should be easier.

Frenchy Pilou
>> Must I draw them separately ?
Yes, you should draw them manually.

>>And alas we can't use the Helpers lines for align because of the second click ! :)
You can use LockConstructionLine script
code:
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 ) }

Bind it to key. Draw construction lines. Run script (the lines will be locked). Run script again to delete the lines.

Hamish, Chri, phlatt5th
Thank you :)

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.15 In reply to 7403.14 
Cool!
French version Updated! :)
http://moiscript.weebly.com/cotations.html
---
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:  krass
7403.16 
Max, that's fine!
This is what the Bolsheviks were dreaming! ))))
I download and run the testing. Thank you very much!
You are, as always, is a genius!
  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.17 
Forget to say about hidden features.

Double click title to load default values
Double click "Scale" to reset scale.
  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.18 In reply to 7403.17 
All day a nice surprise! :)
---
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:  Mik (MIKULAS)
7403.19 
Beautiful script, Max!

as usual... :-)

Thanks for sharing.

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:  MajorGrubert (CARLOSFERREIRAPINTO)
7403.20 
Thanks a lot, Max. Its quite usefull.
  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.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
 

Reply to All Reply to All

 

 
Show messages:  1-8  9-28  29-48  49-68  69-88  …  129-138