Skip to main content
1-Visitor
September 20, 2016
Solved

programming question.

  • September 20, 2016
  • 2 replies
  • 3075 views

Hi,

I want to have several parameters take on different values depening on material selection. I have been unable to use text in if statements so far. The best would be if the user could select the materials from a set of selections. So far I have done it bu using an embedded excel sheet and doing the input in there, but I am not happy about it. Do anyone have an elegant solution for this?

For example:

Material="S355"

a=2

b=3

c=4

Material="316L"

a=0.5

b=1

c=5

etc...

any help is much appreciated.

Best answer by AlvaroDíaz

Hi Espen.

Attached one option, there are a lot of others.

Best regards.

materials.gif

2 replies

12-Amethyst
September 20, 2016

Hi Espen.

Attached one option, there are a lot of others.

Best regards.

materials.gif

elund1-VisitorAuthor
1-Visitor
September 20, 2016

thank you

1-Visitor
September 20, 2016

Alternative solution:

Insert->Control->WebControl->List box/combo box

WebContr.png

Viktor

elund1-VisitorAuthor
1-Visitor
September 20, 2016

I am actually using PTC Mathcad Prime 3.1. Such a solution as you presented is what I prefer, but I am not sure it is possible in prime. Or at least, I have not found a way to make a list where the user can select the desired input.

1-Visitor
September 20, 2016

Someone posted this example recently, which may be useful.

Norm