×
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

Ceiling function of a length

Ceiling function of a length

Ceiling function of a length

(OP)
Good morning !

I am trying to retrieve a length of a spline, which I will be using in a BOM. For production purposes, I need this length to be a multiple of 50mm (49mm->50mm; 51mm->100mm).I am having trouble using the ceil function in Catia V5, mainly to build the 50mm multiple.Right now is working as intended but it only ceils up in 1mm steps. Could you recommend other syntax to do this ?

Best regards,
Costin Ruja

RE: Ceiling function of a length

(1 + int(length/50) ) * 50

Eric N.
indocti discant et ament meminisse periti

RE: Ceiling function of a length

(OP)
Thanks !

I'll try this as soon as I have access to my PC.

Best regards,
Costin Ruja

RE: Ceiling function of a length

(OP)
Good morning !

I have tried it and works like a charm.

But still I have another question.I have transformed this measure first to a real type by dividing it with 1mm (/1mm) and then applied the formula.

Then again I transformed this real type into a string (ToString(Real).

How do I concatenate "mm" in this string ?

Thanks !

Best regards,
Costin Ruja

RE: Ceiling function of a length

Add +"mm" to the end of the formula converting the Real to String.

Example: ToString(Real.1 )+"mm"

it will add "mm" to whatever value the String is.

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