Switch From Imperial To Metric

Switch From Imperial To Metric

christianbaileypaulsen1
Advocate Advocate
1,030 Views
11 Replies
Message 1 of 12

Switch From Imperial To Metric

christianbaileypaulsen1
Advocate
Advocate

I have a block that diplays x and y coordinates. I want to be able to switch it from imperial to metric either via a lookup table or visibility state, or anything really. Please let me know if you have any ideas. Thank you.

0 Likes
1,031 Views
11 Replies
Replies (11)
Message 2 of 12

MMcCall402
Mentor
Mentor

I think I would opt for a second set of attributes for the X an Y coordinates formatted for the metric values and two visibility states to choose which ones to display.   The other attributes can be visible in both states.

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 3 of 12

christianbaileypaulsen1
Advocate
Advocate

Yes thats what i wanted to do with the visibility state. The only problem is that i cant find out how to get it to show up metric. That option doesn't show up when i insert a field.

0 Likes
Message 4 of 12

MMcCall402
Mentor
Mentor

If you're looking to display a metric equivalent value in an cad file with imperial units you would need to apply a conversion factor to get to a metric equivalent.

 

1 foot = 0.3048006096012 meter

 

 

If you're looking to use this block in both imperial and metric unit cad files ... I'd make one block for each as the scaling/sizing might be too different.

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 5 of 12

christianbaileypaulsen1
Advocate
Advocate

The conversion factor box is greyed out and set at 1 whenever i try to click additional formatting and edit it.

0 Likes
Message 6 of 12

MMcCall402
Mentor
Mentor

Rather than using the BlockPlaceholder directly, choose Formula, then in the formula area right-click and choose field, then choose BlockPlaceholder for the value. This will put the field value into the formula area where you can now enter in the conversion factor.

 

The process kind of puts a field within a field.  You can put more fields into formulas to make calculations using values derived from several filed sources.

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 7 of 12

christianbaileypaulsen1
Advocate
Advocate

What would the forumla look like? InsertionPoint*25.4? That gives me 3 coordinates separated by commas?

0 Likes
Message 8 of 12

MMcCall402
Mentor
Mentor

That depends on the units you're converting from, and to.  Feet to meters?  Inches to centimeters?

 

Be sure to carry the conversion value to enough decimal places to fit the level of accuracy you need.

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 9 of 12

christianbaileypaulsen1
Advocate
Advocate

Feet and inches to centimeters.

0 Likes
Message 10 of 12

MMcCall402
Mentor
Mentor

1 foot = 30.xxx-xxxxxxxx centimeters

 

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes
Message 11 of 12

christianbaileypaulsen1
Advocate
Advocate

1 inch = 2.54 cm. I dont know how to put that in a block.

0 Likes
Message 12 of 12

MMcCall402
Mentor
Mentor

The UNITS setting in the cad file you posted was in Feet.  1 drawing Unit = 1 foot.

 

In the BlockPlaceholder for the X and Y field be sure to select the format to be Decimal.  This will retrieve the value as feet and decimal portion of a foot. You don't need to convert inches, just feet in the decimal format to centimeters.

Mark Mccall 
CAD Mangler


EESignature


VHB - Vanasse Hangen Brustlin, Inc.


Linkedin

0 Likes