Skip to main content
1-Visitor
December 7, 2020
Solved

"the variable is undefined" -CoolProp

  • December 7, 2020
  • 2 replies
  • 7572 views

Hello dear friends,

 

Even though I have copied CoolPropMathcadWrapper.dll file to C:\Program Files\PTC\Mathcad Prime 3.1\Custom Functions, I still cannot reach any functions of the dll.

I searched on the Internet but I couldn't find anyone who faced the same problem.

I would be really appreciated if anyone could help me.

Best answer by CanerKendirci

I have solved my problem and want to let you all know.

 

I rebooted my computer and then I installed Mathcad Prime v.6.0.0.0 again on it. Everything is working flawlessly right now. I think the reason why I had the error is changing the language of my OS.

 

Normally I was using the English version of Windows and then I changed the language to German. I had a similar problem with the "ADAMS" programme, provided by MSC, also and at the moment it is working well, too.

2 replies

16-Pearl
December 8, 2020

Well, you're in luck.  I wrote that add-in wrapper for CoolProp and just happened to be on the forum today.  For future reference CoolProp issues are posted on GitHub and there is a CoolProp Google Group for general usage questions. However, I can try to help you here.

 

CoolProp Version 6.4.0 is working here on Mathcad Prime 6.0.0.0 on my Windows 10 machine:

JeffH1_0-1607463159813.png

Which version of CoolProp did you download from SourceForge?

Which version of Windows are you running?

 

A few (really) obvious things I have to ask:

  • Mathcad has to be restarted if you just copied the DLLs.  It loads them on start-up only.
  • If the file was previously saved with the error, hit F5 to recalculate that function.
  • Mathcad Express does not (I believe) read in add-in DLLs.

Let me know.

Jeff

23-Emerald IV
December 8, 2020

Hi Jeff,

You believe rightly. The .dll doesn't work in Express, custom functions is a Premium feature.

If it weren't I would have written all those functions as a .dll, instead of implementing them in Prime.

 

Luc

CanerKendirci1-VisitorAuthorAnswer
1-Visitor
March 25, 2021

I have solved my problem and want to let you all know.

 

I rebooted my computer and then I installed Mathcad Prime v.6.0.0.0 again on it. Everything is working flawlessly right now. I think the reason why I had the error is changing the language of my OS.

 

Normally I was using the English version of Windows and then I changed the language to German. I had a similar problem with the "ADAMS" programme, provided by MSC, also and at the moment it is working well, too.