Show dimension in standard and metric? or switch between them

Next
 From:  Matadem
11539.1 
Good day.
Is there a way if your drawing is set in inch and you want to measure and or confirm the measurement in metric to have the dimension to show this in metric.

even better if it show both...yes I work with both at the same time lol.

also for instance if you want to edit a line length to convert to mm?

Tnx.
  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
11539.2 In reply to 11539.1 
Hi Matadem, you can override the text for a dimension and make it whatever you want. You do that by selecting it and using the "Details..." button and on the detailed Object Properties dialog there is a Text: value you can edit.

The default value is <> which inserts the regular value. If you want to keep the regular value and add additional text you can insert your text before or after the <>. If you want your text to replace the regular value then you can remove the <>.

But having a mixture of different units in the same drawing is rather unusual and may cause confusion if you are sending the drawing to other people. So be careful.


> also for instance if you want to edit a line length to convert to mm?

When you edit the line's length you can put mm at the end of what you type in. That will take your typed in value to be in mm and convert it to the current unit system.

- 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:  Matadem
11539.3 
Thank you...what I meant is the ability to show the dimensions the measurement in mm...even though you are working in inch. without me editing the value.

Tried the edit it works good.

Tnx.
  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
11539.4 In reply to 11539.3 
Hi Matadem,

re:
> Thank you...what I meant is the ability to show the dimensions the measurement in mm..
> even though you are working in inch. without me editing the value.

Sorry no there isn't anything currently set up to do that without editing the value.

Here is a script you can try though, it will do the steps of editing the value for you (requires MoI v5):

script: /* Convert selected dimension to mm */ if ( moi.geometryDatabase.units != 'Inches' ) { moi.ui.alert( 'error - main units not inches' ); } else { var dims = moi.geometryDatabase.getSelectedObjects().getLinearDimensions(); for ( var i = 0; i < dims.length; ++i ) { var dim = dims.item(i); dim.text = moi.ui.formatNumber( dim.numericValue * 25.4, dim.numDecimalPlaces ) + ' mm'; } }

To use it set up a shortcut key and paste in the above. Then select a dimension and press the shortcut key.

It will convert a dim that says 1 in inches to say 25.4 mm

- 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 Gibson
11539.5 In reply to 11539.3 
Or try this one for displaying both inches and mm:

script: /* Convert selected dimension to mixed inches and mm */ if ( moi.geometryDatabase.units != 'Inches' ) { moi.ui.alert( 'error - main units not inches' ); } else { var dims = moi.geometryDatabase.getSelectedObjects().getLinearDimensions(); for ( var i = 0; i < dims.length; ++i ) { var dim = dims.item(i); dim.text = dim.evalText() + ' [' + moi.ui.formatNumber( dim.numericValue * 25.4, dim.numDecimalPlaces ) + ' mm]'; } }

That will set something displaying as 1" to read 1" [25.4 mm]

- 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:  Matadem
11539.6 
That is why Moi is my main app. :D

Thank you! works awesome!!!!!!

another timesaver here.
  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:  Frenchy Pilou (PILOU)
11539.7 
Cool :)

---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel 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
 

Reply to All Reply to All