Skip to main content
10-Marble
Mar 17, 2023 6:50 PM UTC
Solved

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

 

 

LucMeekesAnswer
23-Emerald V
Mar 20, 2023 10:27 PM UTC

Indeed, that "conditional.....-prime-8.mcdx" file is a Prime 9 file.

The attached should work for you.

 

Success!
Luc

16 replies

terryhendicott
21-Topaz II
Mar 17, 2023 7:20 PM UTC

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

Translate
DJNewman
19-Tanzanite
Mar 17, 2023 7:25 PM UTC

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.

 

DJNewman_0-1679081072043.png

 

DJNewman_1-1679081104993.png


I recommend voting up this Idea: https://community.ptc.com/t5/Mathcad-Ideas/Conditional-formatting-of-outputs/idi-p/736333

 

Translate
PTC Marketer for Creo and Mathcad. I run their YouTube channels, some Creo campaigns, and all Mathcad campaigns and communications.
10-Marble
Mar 20, 2023 4:13 PM UTC

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

TH_10254372_0-1679328806434.png

 

Translate
DJNewman
19-Tanzanite
Mar 20, 2023 4:44 PM UTC

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.

Translate
PTC Marketer for Creo and Mathcad. I run their YouTube channels, some Creo campaigns, and all Mathcad campaigns and communications.
17-Peridot
Mar 21, 2023 9:59 AM UTC

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.

Translate
ttokoro
21-Topaz I
Mar 22, 2023 11:20 AM UTC
10-Marble
Mar 22, 2023 7:54 PM UTC

Thank you a lot

Translate