Skip to main content
6-Contributor
Dec 1, 2023 12:41 PM UTC
Question

Mathcad Prime Converter Scripting

I have some VBS and Python scripting files that allow me to generate Mathcad 15 files using the XML data that Mathcad 15 is built on.

In Prime, it looks like the XML formatting is no longer supported, so I was wondering if there is any way to automate the Mathcad Prime converter tool to automatically convert the 15 files to Prime.

Is there an API for the converter tool, or is there any way to run VBS scripts to interface with the converter tool? I was envisioning generating the Mathcad 15 files the way I normally do, then append a conversion step to my scripting files by pointing the converter tool to the automatically generated 15 files.

5 replies

terryhendicott
21-Topaz II
Dec 1, 2023 1:09 PM UTC

 

hi,

Is there an API for the converter tool, or is there any way to run VBS scripts to interface with the converter tool? 

The short answer is no.

 

Converter is easy to use and can handle large number of files.

 

Cheers

Terry

Translate
6-Contributor
Dec 1, 2023 1:35 PM UTC

Understood. I have experimented with the converter tool and I agree that it is pretty easy to use. I was just trying to cut down on user interaction since Mathcad 15 made it easy to automate the whole process.

Translate
23-Emerald V
Dec 2, 2023 6:31 PM UTC

In Prime, xml formatting is still supported, but the xml is stored in parts in an archive that is zipped.

{Rename a Prime .mcdx file to a .zip file and open it with Windows Explorer to see what's inside.}

You might be able to create that structure yourself.

 

Success!
Luc

Translate
6-Contributor
Dec 4, 2023 12:01 PM UTC

Is there any documentation on this?

Translate
23-Emerald V
Dec 4, 2023 3:46 PM UTC

I think there is as much documentation available (to users/customers of the software) from PTC on Prime's .mcdx file structure as there is documentation on the xml structure of Mathcad 15 files:

0

 

Success!

Luc

Translate