Incorrect units
-
I was making a DC where the root object at some point was set to inches, but not the other child objects. I changed it back to metric, but there seem to be something wrong still.
I made a property, Section length, which in the scene attached is 1200mm, but the DC Option displays it as 3048mm. (The whole model is in mm.)
In the DC the value is 120 (cm). and if you measure in the model it's the correct length. But it's the Option box that displays the incorrect unit.How can I correct this?
-
@thomthom said:
I made a property, Section length, which in the scene attached is 1200mm, but the DC Option displays it as 3048mm. (The whole model is in mm.)
Hey ThomThom,
The units assigned to your Section_Length attribute are "Text" with a value of "120". When you set the "Display in" units to mm (or, in your case, default it to the model units of mm), then we have to do a conversion from "text" to "mm". The conversion engine assumes that raw text strings that contain numbers are inches -- which is the weirdness that you're seeing.
The fix is easy. Go into your Attribute details and change the units from "Text" to "Cm". Then the conversion engine will understand what you mean better, and you should see what you want. (Note that when you change this unit, the engine will automatically do the conversion from text to cm... so you'll need to change the attribute value from 204.8cm back to 120cm.)
Let me know if you have more questions!
Cheers,
-
Aaah! That, I should have spotted.
Thanks Scott.
Advertisement