Get a MatrixObject in the MatrixSheet with an index
VB: Property Get Item(Index As ByVal Object ) As MatrixObject
C++: MatrixObject Item(_variant_t Index )
C#: MatrixObject Item(var Index )
Sub MatrixItem() Dim app As Origin.IOApplication Dim msh As Origin.MatrixSheet app = New Origin.ApplicationSI msh = app.FindMatrixSheet("") 'get active matrixsheet If msh Is Nothing Then MsgBox("Can not get active matrixsheet") Exit Sub End If Dim mtx As Origin.MatrixObject mtx = msh.MatrixObjects.Item(0) 'get first matrixobject MsgBox(mtx.LongName) End Sub
8.0SR2