Color coded results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Color coded results
How do I get Mathcad Prime to give me colored coded results. If the result is Pass, return color in Green and if fails, Red? Please help
Solved! Go to Solution.
- Labels:
-
Mathcad Usage
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Indeed, that "conditional.....-prime-8.mcdx" file is a Prime 9 file.
The attached should work for you.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Color coding of results can only be done manually using the math formatting tools.
Others have made the same request for automatic coloring..
Cheers
Terry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
As of Mathcad Prime 9, there's no direct way to do this, but one workaround involves putting the results in an Excel Component as an Input Expression, and use Conditional Formatting there.
I recommend voting up this Idea: https://community.ptc.com/t5/Mathcad-Ideas/Conditional-formatting-of-outputs/idi-p/736333
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Thanks a lot. This is what I need to do. Unfortunately I am new to mathcad so I struggled to do what you said but didn't figure it out. I understand your response is if you have the data on a excel sheet.
I was hoping to just format the sheet to give me response based on info on the same sheet.
For example: My sheet has "q(allowable)" , and I find "q", how do I make the sheet to give me green if OK and red if Not OK. Please do a step or uplaod a mathcad sheet where you did it. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Attached a worksheet!
See if that helps and if you can figure out the rest on your own! I don't know the math behind q and the maximum allowable q so I just defined those as variables (and a combo box for fun), but you can replace those with whatever and it should work.
You can press the - by the Excel Component's input expression to hide it. The magic is that Excel Component input expression being equal, in this case, to qcheck, and if you double-click the Excel Component to open Excel, setting Excel's Conditional Formatting rules to activate upon "OK" or "Not OK" values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Opps. I have Mathcad Prime 8 and you seem to be using a more recent version so I am not able to open it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ah hah... You should upgrade to Mathcad Prime 9!
But here is the same sheet in Prime 8.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you. But I am still getting the same message . Was this new one made in 8? not sure why it's still not opening when I have 8.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Indeed, that "conditional.....-prime-8.mcdx" file is a Prime 9 file.
The attached should work for you.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you, it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello Thank you again. you and @DJNewman . As I have mentioned I just started using mathcad so I am lost. Apologies for my question if these are supposed to be easy lol. I was able to use the sheet you sent me but I am still not able to make my own. I searched on youtube but can't find a step-by step tutorial.
1. How did you define a variable with a drop down table like this
2. Did you type "Not Ok" in the excel sheet and then assign the color under conditional formatting and then while that same sheet is opened, type OK and assign the color?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sorry that my "prime-8" worksheet still tries to open in Prime 9... I thought I had Prime 8 opened while saving it.
The variable drop-down list is called a Combo Box. Here is a video on how to use it and what it does. You don't need the Combo Box for this problem (since I assume you are calculating q based on some kind of formula or series of calculations), but I thought making one would be convenient for testing the conditional formatting:
https://www.youtube.com/watch?v=GOoVL714Bz8
The only thing I did in Excel was the Conditional Formatting rules for the colours to activate upon "Not OK" or "OK", as well as stretching A1 and increasing the font size.
But the actual result of whether it is OK or Not OK is based on the result of qcheck, and you can see in the Excel Component input expression that Mathcad passes the value of qcheck into A1 of the Excel Component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Although this is a viable workaround it has drawbacks:
- An extra component has to be used where a plain colour change of the font e.g.; from black to red would suffice.
- It is taking up document space. When using this document for, say, documentation it has to be tidied up before submitting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It would be great if you'd add your request to the feature suggestions. This is something I'm desperately hoping for since I do have to check calculation documents of 40+ pages length.
Any result highlighting, aka. conditional formatting, in MC prime would be welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Without EXCEL Component.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you a lot
