Skip to main content
1-Visitor
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))."

9 replies

24-Ruby IV

 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 

Translate
Irenee1-VisitorAuthor
1-Visitor

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

Translate
24-Ruby IV

 Irénée,

 

What if you run the example in an attachment?

Translate
5-Regular Member

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

Translate