CustomeDistance Script

Next
 From:  Michael T. (MICTU_UTCIM)
3536.1 
Hi All!

Does anyone know a way to increase the number of decimal places in the results when using this script?

Thanks.

Michael T.
Michael Tuttle a.k.a. mictu http://www.coroflot.com/fish317537
  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
3536.2 In reply to 3536.1 
Hi Michael T - well you can change the number of decimal places shown by default throughout the UI by going to the Options dialog, under Options > General > Decimal display.

But it's also possible to change it only for this one command specifically instead of for everything.

To do that only to this one command individually, you have to change how the command's UI is set up.

The UI for the command is defined in the CustomDistance.htm file, and adding in a style="decimalPlaces:x" attribute onto that numeric input field that holds the distance will control how many decimal places it shows.

So for instance to make it have 5 decimal places, find the line in the CustomDistance.htm file that says this:

<td><input id="space" class="numericinput"></td>

And change it like this (added part shown in bold):

<td><input id="space" class="numericinput" style="decimalPlaces:5"></td>


After you do that, the numeric field for that command will show 5 decimal places of precision instead of the default setting.

- 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:  Michael T. (MICTU_UTCIM)
3536.3 In reply to 3536.2 
Thanks Michael G.

I found a little easier way for me by opening the html file in Note Pad.

Thanks again for the help!

Michael T.


Michael Tuttle a.k.a. mictu http://www.coroflot.com/fish317537

EDITED: 4 Nov 2010 by MICTU_UTCIM

  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
3536.4 In reply to 3536.3 
Hi Michael T - I see it looks like you were using the other version of "custom distance" that has the individual x, y and z deltas in it.

That was set up slightly differently than the original 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
 From:  Michael T. (MICTU_UTCIM)
3536.5 In reply to 3536.4 
Got it.

Thanks Michael G.

Michael T.
Michael Tuttle a.k.a. mictu http://www.coroflot.com/fish317537
  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