Skip to main content
1-Visitor
September 30, 2021
Solved

Include files

  • September 30, 2021
  • 2 replies
  • 3970 views

Hi all

I am trying to include Mathcad files where I use a variable as a part of the file name. i.e. when I change the variable, the name of the included file changes. I want this for Mathcad 15 and Mathcad prime.

Thanks

Best answer by -MFra-

You could do as shown in the following image:answer to AE_10050416.jpg

answer to AE_10050416-1.jpganswer to AE_10050416-2.jpg

2 replies

23-Emerald IV
September 30, 2021

 

It is not supported, not in Mathcad, not in Prime.

 

Success!
Luc

1-Visitor
September 30, 2021

Thanks for your reply.

Can the include commands be a part of "if" statement where a file is included only if a condition is satisfied?

23-Emerald IV
September 30, 2021

Neither, as far as I know.

 

Luc

-MFra-21-Topaz IIAnswer
21-Topaz II
October 1, 2021

You could do as shown in the following image:answer to AE_10050416.jpg

answer to AE_10050416-1.jpganswer to AE_10050416-2.jpg

23-Emerald V
October 1, 2021

What was the reason you chose the nested if-otherwise structure instead of, say, a vector?

 

2021 10 01 D.png

 

Or, 

 

2021 10 01 E.png

 

2021 10 01 F.png

 

Stuart

21-Topaz II
October 1, 2021

I made it in 2018 and I published it in this community some time ago. So I thought that a click was enough, in your file, however, "there is no click". In my worksheet, there is still another if-otherwise nested structure for the actual launch of the chosen function by clicking on the corresponding button. I like your solution, it simplifies many things, however, I think you will find problems with the launch of functions that present, in addition to the independent variable, also parameters in number varying from function to function. See the following image:

answer to AE_10050416-.jpg