Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Mathcad prime Image function

SN_12746097
4-Participant

Mathcad prime Image function

Hi 

I need a function which makes it possible select a image/picture based on a function.

example:

if case=1

Display image 1

else if case=2

display image 2

end

6 REPLIES 6
Werner_E
25-Diamond I
(To:SN_12746097)

What you demand was possible to do in legacy Mathcad, but Prime is still missing the necessary image operator/component.

I can only think of two awkward workarounds:

1) Modify the XML-source of the Prime file depending on the selection of case and reload the worksheet

2) Use an Excel component to display the picture

 

Only option 2 seems to be reasonably feasible and I seem to remember that such a solution has been posted here in the forum before (but couldn't find the thread in short order).

SN_12746097
4-Participant
(To:Werner_E)

Hi Werner

 

 Thank you for taking time to reply to my issue.

 

I agree with you that optin 1 is not reasonably feasible.

 

I have tried using an excel component, but the image is of a poor quality as illustrated on the right figure. It is the same image file inserted on tw different method.

the left image is manualy incluted 

 

SN_12746097_0-1737467743812.png

 

Werner_E
25-Diamond I
(To:SN_12746097)

I sure see the difference.

Looks like a problem with scaling down the original image (either from Excel or from Prime, I suspect Prime).

You may try to resize the picture within Excel and see if it helps.

Or you may scale down the original image using a decent image editing programme and use the modified images.

I fear that otherwise I can't think of a suitable solution to this problem.

SN_12746097
4-Participant
(To:Werner_E)

for now i have given op on importing images as a figure and have made a compromise where i use an image as the background and have a plot in front to show the correct number of bolts as shown below

 

SN_12746097_0-1737643477527.pngSN_12746097_1-1737643493495.png

 

It is not a perfect solution but accetable for now.

 

do you know if there is a way to reques a new function from PTC?

 

 

Werner_E
25-Diamond I
(To:SN_12746097)



do you know if there is a way to reques a new function from PTC?

 


There is this place

Mathcad Ideas - PTC Community

where you (as a paying customer) can submit ideas and the like and also vote for the suggestions of other participants. I don't dare estimate how much such ideas are actually taken into account and how busy this area is. I actually hardly ever look there.

Hi,

Could you please share the procedure or the file to use the above function?

Announcements

Top Tags