Access MathCAD Prime-data via Visual Basic (Script worked with MathCAD 15.0)
I am using Mathcad Prime 7.0 7.0.0.0
With an VisualBasic Programm we extract Calculations out of MathCAD 15.0
into an Excel Table.
I managed to transform the file from MathCAD 15.0 into MathCAD Prime 7.0
but the extraction of the values does not work.
I managed to open the
I changed
"GetValue" -> "InputGetValue"
and
"getelement" -> "GetMatrixElement"
but the values still do not get transfered to Excel.
What is the right syntax to adress the values in MathCAD Prime?
(mcws stands for MathCAD-Worksheet)
VB-Script-Line for MathCAD 15.0:
Set MC = CreateObject("Mathcad.Application")
Set mcws = MC.Worksheets.Open(pfad & Worksheets("Stammdaten").Range("MCDatei"))
...
WertEinlesenMCAD.uwrk = mcws.GetValue(varname).getelement(0, 0)
Script for MathCAD Prime 7.0:
Set MC = CreateObject("MathcadPrime.Application")
MC.Visible = True
MC.Activate
Set mcws = MC.Open(pfad & Worksheets("Stammdaten").Range("MCDatei"))
....
WertEinlesenMCAD.uwrk = mcws.InputGetValue(varname).GetMatrixElement(0, 0)

