Dimension tool (as in sketchup)
 1-5  …  66-85  86-105  106-125  126-138

Previous
Next
 From:  Frenchy Pilou (PILOU)
7403.106 In reply to 7403.105 
@Max (imum)
You don't know perversity of some geometric's maniacs! :D
So my version will be customized with funny thing max="14" (line 282) :D

EDITED: 14 Sep 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:  Frenchy Pilou (PILOU)
7403.107 
And for Type 4 & 5 with CTRL seems we must make this! (THX Chri)
if ( arrowType.value == 4 || arrowType.value == 5 ) { f = moi.VectorMath.createPoint (c.x+dx, c.y+dy, c.z+dz ); fixedDist = round(R, 2); }

by

if ( arrowType.value == 4 || arrowType.value == 5 ) { f = moi.VectorMath.createPoint (c.x+dx, c.y+dy, c.z+dz ); fixedDist = round(R, decimals.value); }


Ps I don't know if all that work for Imperial ? Never used, too complex for me! :(


EDITED: 14 Sep 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.108 In reply to 7403.107 
Yes. Missed one Round call. Fixed and uploaded.
  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:  BurrMan
7403.109 In reply to 7403.106 
""""""""So my version will be customized with funny thing max="14" (line 282) """""""""""""""

Mine is set to "15" and outputs 15....

I also set my default at 4 and wrote in to default with "units" checked and also to have "in" as the trailer.......
  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.110 In reply to 7403.109 
you right 15 seems the ultime limit :)
---
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:  toggi
7403.111 In reply to 7403.103 
wow. that script is phantastic. thanks a lot!
that really will save me a lot of time.
  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:  JL82 (JML82)
7403.112 
the script is not working for me. I got the script error. The language is Finnish.


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:  Michael Gibson
7403.113 In reply to 7403.112 
Hi JL82,

re:
> the script is not working for me. I got the script error.

From the error it looks like you are running MoI version 2, and I think the script requires MoI version 3 in order to run properly.

- 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:  JL82 (JML82)
7403.114 In reply to 7403.113 
Yes, I have version 2.
  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:  GonzoRus
7403.115 In reply to 7403.114 
Hello everybody.

The distance, the red arrow can be changed? Between the dimension line and digits?

Through editing files "_Dimensions.htm" or "_Dimensions.js"?



  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.116 In reply to 7403.115 
I am affraid not yet but just select and move it! ;)
  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.117 In reply to 7403.115 
Hi GonzoRus,

> The distance, the red arrow can be changed? Between the dimension line and digits?
>
> Through editing files "_Dimensions.htm" or "_Dimensions.js"?

Yes it's possible to change that spacing by editing the _Dimensions.htm file.

Using the latest version Dimensions.v.1.0.2015.09.14.zip which you can get from here: http://moi.maxsm.net/media/files/ , you would want to modify line #135 which sets the placement of the text.

135:     textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/3)/2, 0);

You would want to add something to the 2nd parameter to frame.evaluate(), like this for example (see the bold text for the + 1 that is added):

135:     textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/3)/2 + 1, 0);


- 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:  Frenchy Pilou (PILOU)
7403.118 In reply to 7403.117 
Cool ! Will be added to the manual!

Done! http://moiscript.weebly.com/cotations.html :)

EDITED: 3 Apr 2016 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.119 
Hi guys :)

This +1 method doesn't work correct in some cases.
It will be better to use the following line:
code:
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/2)/2, 0);
or
code:
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/1)/2, 0);
or
code:
textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize*3)/2, 0);
  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.120 In reply to 7403.119 
Maybe input this on the Dimension Menu will be very fine! ;)
  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:  GonzoRus
7403.121 In reply to 7403.120 
"Maybe input this on the Dimension Menu will be very fine! ;)"

YES!!! it would be amazing!
  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:  GonzoRus
7403.122 In reply to 7403.121 
Changed line 135

textframe.origin = frame.evaluate(textShift, (1-2*(angle>=180))*(lineWidth+textSize/1)/2, 0);

The distance from the dimension line has increased.

BUT! The angles are displayed incorrectly.



  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:  karlgroendal (KARL_GROENDAL)
7403.123 In reply to 7403.5 

Hi

Will the script work on Mac - and how?

Thanks :)

  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.124 In reply to 7403.123 
Hi Karl, yes the dimension script will work on the Mac version as well.

You can download the latest version of the script from Max's site here: http://moi.maxsm.net/media/files/ the one you want is named Dimensions.v.1.0.2015.09.14.zip

Then for installation instructions please refer to FAQ #1, how do I install a plug-in script? .

- 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:  none (EVALON)
7403.125 

Hi All,

I have read this thread with some interest as it may be feasible for me to somehow export MoI3D files with dimensions. I also noticed that Michael had/have this as a potential part of a V4 release ...

To this end: Is there any news on whether or not this will be part of a V4 release - and if so when is the V4 release due?

Have a good day ;-)

Jesper

  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  …  46-65  66-85  86-105  106-125  126-138