INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

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!

Join Eng-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Hiding equations in mathcad

Hiding equations in mathcad

(OP)
Say I have two equations.  One equation is used if x > y.  The other is used if x <= y.  If for some situation x > y, I only want the function associated with that condition to show up on my printout.  I know I can simply drag the equation I want onto the printed portion and take out the equation I don't want, but I would prefer to not have to do that, especially since it might not be me who uses the program.  

I'd like to be able to write some kind of conditional statement that will decide which equation to "show" and which to "hide", so the the program will automatically make visible the equation associated with x > y, and make invisible the equation associated with x <= y. It's a matter of having available the equations for all situations, but having the printout show only those equations that are relavent to a specific situation, without requiring the user to have to drag anything around.

I've searched a number of help files and forums but can't find anything that does this.  Any tips would be much appreciated.

-HT

RE: Hiding equations in mathcad

I don't know of an elegant way to do it on the fly.  What I do in that situation is display the x and y values and then do an if statement.  Anyone who can read the calculation, can determine which is greater and which equation I used.

David

RE: Hiding equations in mathcad

You could put the equations in a collapsed area, then use a text box to show the proper equation.  The text box script could be edited to display text representing the correct equation (it wouldn't actually be the equation but could look like it).
 

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!

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close