Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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.
Indeed, that "conditional.....-prime-8.mcdx" file is a Prime 9 file.
The attached should work for you.
Success!
Luc
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
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
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
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.
Opps. I have Mathcad Prime 8 and you seem to be using a more recent version so I am not able to open it.
Ah hah... You should upgrade to Mathcad Prime 9!
But here is the same sheet in Prime 8.
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.
Indeed, that "conditional.....-prime-8.mcdx" file is a Prime 9 file.
The attached should work for you.
Success!
Luc
Thank you, it works
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?
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
Thank you so much
Although this is a viable workaround it has drawbacks:
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.
Without EXCEL Component.
Thank you a lot