Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello,
I would like to better understand the object "ValuesSetter". Description says it is for setting multiple values of double or matrix scaled values by alias. What does "multiple values" mean? How can a single alias, which is supposed to represent a single mathcad variable hold multiple values?
And how is this different from Worksheet methods "SetRealValue", "SetStringValue" & "SetMatrixValue"?
If there's someone who could give a sample code in VB using the object ValuesSetter and one of its methods, that would be great.
There is also an object called SetValueResults. Is it related to object ValuesSetter?
And, does anyone know if it is possible to create a matrix of "strings"? Or mix of strings and double even?
The method "SetMatrixElement" of the Matrix object and the method "SetMatrixValue" of the object Worksheet only create matrices of type double.
I guess I can send the string one by one to mathcad, then group them into one matrix inside the mathcad but I'd like to know if there's a simpler way.
Oh, I actually need to do the reverse as well, but I would like to figure that out myself after someone teaches me how to send matrix of strings to mathcad first.
Thank you and Best regards,
ge
Hii,
I have some idea related it that the object "ValuesSetter" in Mathcad is designed to set multiple values of double or matrix scaled values using aliases. When it mentions "multiple values," it refers to the capability of setting multiple values in a single operation, rather than setting each value individually. In Mathcad, an alias is a symbolic name that represents a single variable or expression. The concept of aliases allows you to assign values or expressions to a symbolic name and use it in your calculations.
Thank you for the reply.
However, the syntax does not illustrate capability to set set multiple values in single operation. I attached the syntax for the ValuesSetter method AddScalarValue above. What do you think?