×
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

a formula for length and diameter

a formula for length and diameter

a formula for length and diameter

(OP)
Hi guys,
stuck with some formula. the length and the diameter of the tube depends on some code. for example tube dia. equals code multiplied by value, where 048 is a code and 0.125 is multiply value (tube dia in this case equals 6 inches) . both of this values defined as string in catia, however catia says it's impossible to multiply string by string and get a length parameter. how to deal with that?

RE: a formula for length and diameter

Create 2 parameters, 1 sting and 1 length
In the string parameter enter the value of 048
Edit a forumula for the length parameter
String.1 ->ToReal() *.125in



The .125in will convert the sting (must be all numbers) to inches and divide by 1/8.
If it was a metric value than *1mm

Regards,
Derek

Win 7
23SP5/24SP3, 3DVIA Composer 2015

RE: a formula for length and diameter

(OP)
thanx a lot.

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