Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

JavaScript/VBScript example for getting matrix value

JDu
4-Participant
4-Participant

JavaScript/VBScript example for getting matrix value

Hi,

I looked through the API guide and downloaded the examples. The last part of the code displays 'output1' in message box. It does not have example on how to show the matrixoutput1.

Can you help with this? I need to get matrix from the sheet.

 

Screenshot 2026-03-15 222352.png

ACCEPTED SOLUTION

Accepted Solutions
terryhendicott
21-Topaz II
(To:JDu)

i = matrixValue.SetMatrixElement(0, 0, 2.5);

 

hereResult.MatrixResult.GetMatrixElement(ic, jc, out
dblhere);

View solution in original post

3 REPLIES 3
terryhendicott
21-Topaz II
(To:JDu)

i = matrixValue.SetMatrixElement(0, 0, 2.5);

 

hereResult.MatrixResult.GetMatrixElement(ic, jc, out
dblhere);

JDu
4-Participant
4-Participant
(To:terryhendicott)

Hi Terry,

so the matrix can only be operated element by element, is that correct?

terryhendicott
21-Topaz II
(To:JDu)

In terms of getting or setting elements of a matrix, it is as far as I know element by element.

 

Cheers

Terry

Announcements


Top Tags