×
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

formula editor

formula editor

formula editor

(OP)
Is there a way to have an "if" statement in the formula editor? I have an equation that is in excel and looks like this:
=IF((18<(0.2*150)),((495*SQRT((0.2*18)/150))+36),((150*(18/150))+105))
I am trying to incorporate this into Catia V5. Any ideas?

Thanks in advance for the help

RE: formula editor

This seems to be some seriously lacking functionality (at least in the licenses I have) for CATIA.  

I was trying to use IF/THEN or CASE statements, and here is the thread I started with some good replies and suggestions:

http://www.eng-tips.com/viewthread.cfm?qid=180006&amp;page=14


In the end I didn't end up finding an elegant solution with our current license.  

--Jay

RE: formula editor

What kind of IF statement is this?
Is it a format unique to Excel?

=IF((18<(0.2*150)),((495*SQRT((0.2*18)/150))+36),((150*(18/150))+105))

Please clarify how this is suppose to look

Thxs

Nev

RE: formula editor

(OP)
This equation is for our tapers on the ends of a laser cut tubes. The 18 is 18mm from the end of the tube and the 150 is the length of the taper. We build half and then mirror the other half, close the ends and sow together and use as a cutting surface on a hollow tube.

RE: formula editor

Yes nev, that is an excel formatted IF statement.  

--Jay

RE: formula editor

Jay,

So what would be the formula in the programming world?

Regards

Nev

RE: formula editor

IF Offset_From_End<(0.2*Taper_Length) then
   X =((495*SQRT((0.2*Offset_From_End)/Taper_Length))+36)
else
   X =((Taper_Length*(Offset_From_End/Taper_Length))+105))
end if

Sort of VB-ish syntax. for catia knowledgeware drop the then & the end if and surround  the X = with {} brackets.

RE: formula editor

(OP)
PeterGuy thanks for the information. This is very helpful

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