Skip to main content
1-Visitor
December 27, 2021
Solved

API Mathcad

  • December 27, 2021
  • 2 replies
  • 5019 views

I am using Mathcad Prime 6.0 6.0.0.0

Dear Support,
I have downloaded the C# WPF project for using the API Mathcad (https://support.ptc.com/help/mathcad/r7.0/en/index.html#page/PTC_Mathcad_Help%2Fexample-2_ms_dev_studio.html%23) but it does not work (Problem to connect Mathcad Prime).
I'm using Prime 6.0.
Is this version compatible with your API ?
Thanks
Regards,
Irénée


Here are the errors that I faced
ex.Message = "Retrieving the COM class factory for component with CLSID {A00E8B95-D415-433F-A04E-D298A54A7BB7} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

2 replies

24-Ruby III
December 27, 2021

 Hi Irénée,

 

1Submit your issue here: https://support.ptc.com/apps/case_logger_viewer/cs/auth/ssl/log 

2. Read this article - "How to solve COM Exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))?": https://stackoverflow.com/questions/1496214/how-to-solve-com-exception-class-not-registered-exception-from-hresult-0x80040 

Irenee1-VisitorAuthor
1-Visitor
December 28, 2021

Thanks for the answer Vladimir.

I tried to change the target platform "x86", "x64", "Any CPU", without success.

The problem occurs when I want to start Mathcad (error during the instanciation "_mathcadPrimeApplication = new Ptc.MathcadPrime.Automation.ApplicationCreator();")

Regards,

Irénée

24-Ruby III
December 28, 2021

 Irénée,

 

What if you run the example in an attachment?

5-Regular Member
September 12, 2022

Are there any valid answers that do not include purchasing an entirely new version of Mathcad??