×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

rounding length values

rounding length values

rounding length values

(OP)
Guys,
I know there have been a couple threads discussing how to deal with the round function in Catia, but I'm confused how to effectively use it.

Let's say I have a value: "length" = 50.225mm

How do I round this to:

(a) no significant digits (ie: 50mm)
(b) 1 significant digit (ie: 50.2mm)
(c) 2 significant digits (ie: 50.23mm)

I haven't been able to figure out the combination of code to get Catia to do this for me yet; I'd really appreciate it if someone can help on this.

Thanks

RE: rounding length values

Are you asking about parameters? or drawing dimensions? or something else?

RE: rounding length values

Rounding of dimensions on a drawing is in ASME Y14.5-1994, 1.6.4, which references ANSI/IEEE 268.

Basically dimesnions are rounded to even numbers, so your 50.225 would be 50.22 as 2 significant digits.

The explainations is that by always going to even numbers, it reduces tolerance build-up, as some numbers go up and some go down.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
Sr IS Technologist
L-3 Communications

RE: rounding length values

(OP)
I should've been more clear in my question: I'm referring to parameters.

My example of "length" = 50.225mm was an example of a parameter in Part Design.

Being able to use Round with length parameters could enable some powerful knowledge-based part design functionality.

RE: rounding length values

(OP)
bump

RE: rounding length values

Hi,

try this

if "Lenght" is a lenght paramater and the value is 50.225mm
the round() command needs a real paramater as input. By divide 1mm you convert the lenght to a real.

a) (round("Lenght"/1mm))*1mm should give 50mm
b) (round("Lenght" /1mm*10))*1mm/10 should give 50.2mm
c) (round("Lenght" /1mm*100))*1mm/100 should give 50.23mm

RE: rounding length values

(OP)
Akesson,

Thank you very much!  Your suggestion worked perfectly.  I gave you a star in return :)

RE: rounding length values

this remind me something :

I just used search "round"  and found Eng-Tips : 124350

Eric N.
indocti discant et ament meminisse periti

RE: rounding length values

(OP)
round and round we go

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources