8.1.17.4 Matrixsheet::SetNumMats

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Set the number of MatrixObjects in a MatrixSheet.

Syntax

 SetNumMats(nMats)

Parameters

nMats
the number of MatrixObjects

Return

True if succeed, otherwise False

Examples

EX1

import PyOrigin
msheet = PyOrigin.ActiveLayer()
msheet.SetNumMats(2)
print(msheet.GetNumMats())

See Also

Matrixsheet::GetNumMats