Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting expression numbers to string format, problem with differing units 1

Status
Not open for further replies.

3dr

Automotive
Jul 10, 2004
451
If you have an inch part file with a mm expression and format it to string, it converts it back to the part files units.

Ex: Metric Part file
Expr1 = 3 inches, format to string = "76.2"

Ex: Inch Part file
Expr1 = 3 mm, format to string = ".118"

I just want the number shown to to be converted to string, no unit conversion.

I've attached a couple of screen shots testing different ways to achieve this and so far nothing works.
Even if the numbers are unit-less (Constant) the behavior is the same.

Is there a way around this??
A way to force it in the "format" Expression itself???

TIA








Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX1851, Win 10 Pro
 
 https://files.engineering.com/getfile.aspx?folder=2845a4d5-cab3-4806-9abf-21fc61889142&file=mm_to_inch_dim_conversion.jpg
Replies continue below

Recommended for you

You can do a math conversion on the value:

MM_STRING_w5h0ai.jpg
 
Cowski... delivers the elegance once again.

Thanks Man.



Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX1851, Win 10 Pro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor