Skip to main content
23-Emerald V
February 26, 2011
Question

Execution of Files undergoing conversion to Prime?

  • February 26, 2011
  • 3 replies
  • 8374 views

I've just installed Prime and was trying out the converter to evaluate a worksheet I've just written. The worksheet generates 162 files as part of its operation. To my surprise, there are now 162 files on my HD with the same timestamp as the newly created mcdx file.

Given that Prime won't run the worksheet, this implies that M15 must be executing the original worksheet as part of its conversion process. Is this documented? I can't readily find it in help.

Stuart

3 replies

1-Visitor
February 26, 2011

I've just installed Prime and was trying out the converter to evaluate a worksheet I've just written.

So you took the plunge

Given that Prime won't run the worksheet, this implies that M15 must be executing the original worksheet as part of its conversion process. Is this documented? I can't readily find it in help.

I would have thought that this is the case. So you ask Mathcad to convert the worksheet and it runs the 'scripted component' while it is converting!!! Seems a little strange and is poor behavior IMO. The data being written to these files might be dependant on user input variables and therefore another case where Prime cannot be used.

Mike

23-Emerald V
February 26, 2011

Mike Armstrong wrote:

I've just installed Prime and was trying out the converter to evaluate a worksheet I've just written.

So you took the plunge

Yep. You can't complain about something about something if you haven't tried it ... oh, rats, of course you can - and it's makes the trip on the Outrage Bus so much more enjoyable if you don't actually have to back your assertions with anything more than conjecture and wild speculation.

Given that Prime won't run the worksheet, this implies that M15 must be executing the original worksheet as part of its conversion process. Is this documented? I can't readily find it in help.

I would have thought that this is the case. So you ask Mathcad to convert the worksheet and it runs the 'scripted component' while it is converting!!! Seems a little strange and is poor behavior IMO. The data being written to these files might be dependant on user input variables and therefore another case where Prime cannot be used.

I think it's slighly worse than that, Mike. There are differences between the earlier version and M13+ that could affect the actual calculations. In this case, it might be better to use any stored results or display a 'cannot display result' response.

The other, perhaps equally significant, point is that it could overwrite existing data files.

Stuart

1-Visitor
February 26, 2011
One irritating limitation is that I can't pass range definitions to a function, eg vec(0,0.1..1) - works in M11..M15 and is a very useful capability.

Oh no.... You pushed that function my way and that's all I use to create vectors now.

http://communities.ptc.com/servlet/JiveServlet/showImage/38-1286-6350/soap+box.gif

Not happy it doesn't work.

Mike

23-Emerald V
February 27, 2011

Another annoying little trait is that I can't have M11 open when doing conversions.

"The conversion cannot be started because a previous version of Mathcad is running. Close the other version before converting the file."

I don't know why not, as M11 and M15 can run in parallel. I also find I have to restart the converter even after I've closed M11, as it still generates the same message and I have to reload the file to be converted.

Stuart

1-Visitor
February 27, 2011

I can see somebody else not being very happy with Prime.

Mike

23-Emerald V
February 27, 2011

The other thing that strikes me as slightly odd is that there isn't an M15 built-in capability to Save As in Prime format.

Stuart

1-Visitor
February 28, 2011

Stuart,

You raised a few issues here. Worksheets from earlier versions of Mathcad are converted to Mathcad Prime 1.0. through Mathcad 15 M005 in the background. It shouldn't change your source file, but I don't know what happens with writeprns. Can you post the file here so we can check it? It also shouldn't overwrite any data files, since the source worksheet is being converted to Mathcad Prime. None of the data files are touched.

Scripted components are not part of Mathcad Prime 1.0. They'll be added in a future release.

I'll investigate vec(0,0.1..1), passing a range to a function.

Can you send me an example of "the version of the matrix function that will accept a range-definition or vector in the 'size' arguments. If users make functions, we're not always aware of them.

The reason you can't have Mathcad 11 open at the same time, has to do with registries. Mathcad 15 M005 has to be registered, and for some reason, running an earlier version of Mathcad, changes the registration for Mathcad 15. We can look into this for the next release.

Mona

23-Emerald V
February 28, 2011

Mona Zeftel wrote:

Stuart,

You raised a few issues here. Worksheets from earlier versions of Mathcad are converted to Mathcad Prime 1.0. through Mathcad 15 M005 in the background. It shouldn't change your source file, but I don't know what happens with writeprns. Can you post the file here so we can check it? It also shouldn't overwrite any data files, since the source worksheet is being converted to Mathcad Prime. None of the data files are touched.

Scripted components are not part of Mathcad Prime 1.0. They'll be added in a future release.

I'll investigate vec(0,0.1..1), passing a range to a function.

Can you send me an example of "the version of the matrix function that will accept a range-definition or vector in the 'size' arguments. If users make functions, we're not always aware of them.

The reason you can't have Mathcad 11 open at the same time, has to do with registries. Mathcad 15 M005 has to be registered, and for some reason, running an earlier version of Mathcad, changes the registration for Mathcad 15. We can look into this for the next release.

Mona

Hi Mona,

Worksheet attached giving examples of vec, seq and matrix functions (plus a few others either in support or as additional ones I use frequently).

Second file is the one that uses WRITEPRN and appeared to overwrite the existing data files.

Stuart