×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

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!

*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

Highlight region color conditional to the results

Highlight region color conditional to the results

Highlight region color conditional to the results

(OP)
Hi, I would like to know if it is possible in Mathcad to highlight a region to a different color depending on the result.

ie: IF "condition is true" (highlight region would be green)
    IF "condition is false" (highlight region would be red)

Thanks.
 

RE: Highlight region color conditional to the results

I've been looking for that functionality for years.  If it is there it is well hidden.  I'd also like to just be able to change the font and color of a single equaiton without changing the rest.  I get the feeling that PTC isn't putting a lot of resources on MathCad and pretty isn't on their agenda at all.

David

RE: Highlight region color conditional to the results

There are a number of discussions on ways of (almost) achieving this on the mathcad collaboratory. But nothing as direct as you get with excel's conditional formating...

RE: Highlight region color conditional to the results

That's one of the workarounds, to use the embedded Excel capability to get its conditional formatting, while using Mathcad to do the calculations.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

RE: Highlight region color conditional to the results

Use visual basic script. It shows red/green like you want
but unfortunately doesn't print it. MathCAD needs to fix.
the VB script that controls the display of Text Box 2

Sub TextBoxEvent_Exec(Inputs,Outputs)
  If Inputs(0).Value > Inputs(1).Value And Inputs(0).Value < Inputs(2).value Then                        TextBox.BackColor = vbGreen
            TextBox.Text="GOOD"
        Else
            TextBox.BackColor=vbRed
            TextBox.Text="BAD"
    End If
End Sub

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! Already a Member? Login



News


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