Skip to main content
Dec 27, 2021 9:19 AM UTC
Solved

API Mathcad

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))."

VladimirNAnswer
Dec 31, 2021 7:08 PM UTC

9 replies

Dec 27, 2021 1:44 PM UTC

 Hi Irénée,

 

1. Submit 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 

IreneeAuthor
Dec 28, 2021 9:41 AM UTC

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

Dec 28, 2021 7:55 PM UTC

 Irénée,

 

What if you run the example in an attachment?

Sep 12, 2022 8:23 PM UTC

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