cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Mathcad Prime Failing to Convert Legacy Mathcad V15 File

GE_13596182
4-Participant

Mathcad Prime Failing to Convert Legacy Mathcad V15 File

Mathcad Prime V10.0.0 is failing to convert a V15 Mathcad file with a .xmcd extension. The file was originally created in a much earlier version of Mathcad - possibly V12 - but was used periodically using V15.

After failing to convert, Prime creates a new file with a .mcdx extension to it. Does anyone have any advice on what the issue might be and what the next step could be? For the avoidance of doubt, I could previously open, edit, execute and save the original Mathcad file using Mathcad V15 without any issues.

ACCEPTED SOLUTION

Accepted Solutions

Hi,

Have converted the file.

Steps.

1) Removed highlighting,

2) Removed collapsed regions.

3) Deleted Header and Footers

4) Changed right hand margin from 45 to 15 mm in A4.  This puts all calculations in the left hand page.

Not sure you need to make all the changes I made but it works

Cheers

Terry

View solution in original post

7 REPLIES 7
LucMeekes
23-Emerald IV
(To:GE_13596182)

What makes you believe that the conversion failed?

 

Prime either converts the Mathcad 15 file and produces an .mcdx file, possibly with some hints on issues it encountered, or it fails to convert and then no .mcdx file is generated.

So if you have an .mcdx file, that should be the converted .xmcd file.

You should still be able to open the .xmcd file with Mathcad 15, but you cannot open the converted .mcdx file with it. For that you need to use Prime.

 

Success!
Luc

Hi,

I can confirm that conversion failed in MCP 11.0.0.0.

MartinHanak_0-1749013252841.png

Master Earth Pressure.mcdx_exceptions_log.txt contains following error description.

Exception data:
System.ArgumentException: Unrecognized structure in data format 'Rich Text Format'.
Parameter name: stream
   at System.Windows.Documents.TextRangeBase.Load(TextRange thisRange, Stream stream, String dataFormat)
   at System.Windows.Documents.TextRange.LoadVirtual(Stream stream, String dataFormat)
   at Ptc.PersistentDataObjects.PresentationSettingsDataObjectCreator.ConvertHFPaneText(String hfPaneText, LocationInfo locationInfo)
   at Ptc.PersistentDataObjects.PresentationSettingsDataObjectCreator.ConvertHFPane(headerFooterPaneType hfPane, LocationInfo locationInfo, IDictionary`2 headerFooterImagesMap, IList`1 regions)
   at Ptc.PersistentDataObjects.PresentationSettingsDataObjectCreator.CollectHFObjects(headerFooterType hf, Boolean isHeader, Double pageWidth, Double gridCellSize, IDictionary`2 headerFooterImagesMap)
   at Ptc.PersistentDataObjects.PresentationSettingsDataObjectCreator.CreatePresentationSettingsFromMC14Xml(XmlElement presentationXml, DataObjectHelper dataObjectHelper, IDictionary`2 headerFooterImagesMap, List`1& headerRegions, List`1& footerRegions)
   at Ptc.PersistentDataObjects.DocumentSettingsDataObjectCreator.ReadDocumentSettings(XmlElement settingDataAsXml, DataObjectHelper dataObjectHelper, IDictionary`2 headerFooterImagePaths, presentation& presentation, calculation& calculation, List`1& headerRegions, List`1& footerRegions)
   at MCDXConverter7.DocumentSettings.AddSettings(String settings, String[] paths)
   at MCDXConverter7.CMcdxConverter.AddSettings(String settings, String[] paths)

 

 


Martin Hanák
LucMeekes
23-Emerald IV
(To:MartinHanak)

Either Mathcad 15 contains a bug that can create illegal RTF structures, but it can handle those itself. 

Or Mathcad 15( and before) knows Rich Text Format (RTF) structures that Prime doesn't know about and thus cannot handle, which I think is a Prime bug.

 

This should be reported to PTC.

 

Success!
Luc

GE_13596182
4-Participant
(To:LucMeekes)

Thanks for the advice Luc.

 

I pasted some of the error message into Copilot which suggested that the problem is likely related to content in the header or footer of the V15 file. The V15 file is based on a Mathcad template and so the issue might be as Copilot is suggesting. However, I recently converted a few legacy V15 Mathcad files to Prime and these are also based on a Mathcad template,

 

I'll re=open the file again in V15, delete the header content and then try to convert.

Many thanks for confirming Martin. That's the exact same error message I received trying to convert using Prime 10.0.0

 

Hi,

Have converted the file.

Steps.

1) Removed highlighting,

2) Removed collapsed regions.

3) Deleted Header and Footers

4) Changed right hand margin from 45 to 15 mm in A4.  This puts all calculations in the left hand page.

Not sure you need to make all the changes I made but it works

Cheers

Terry

Brilliant terry and many thanks. 😀

 

I downloaded the file you uploaded and I successfully opened the file in MCD Prime.

 

As you found out, and as Copilot pointed to, it's more than likely an issue with Rich Text in the header that's causing the problems.

 

Once again thanks for your help and to others on the forum who contributed to this thread.

 

Regards,

 

Graham

 

Announcements


Top Tags