| 8.2.6 CreatePage
	|  | 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. | 
 DescriptionCreate new page (workbook, graph, matrixbook, Notes .etc) in Origin project.
 SyntaxCreatePage
(nType, 
PageName = "", 
TemplateName  = "", 
nOption = CREATE_VISIBLE_SAME) Parameters nType3: PGTYPE_GRAPH11: PGTYPE_LAYOUT5: PGTYPE_MATRIX9: PGTYPE_NOTES2: PGTYPE_WKS
 PageNameSpecifies the page name
 TemplateNameSpecifies the page name
 nOption CREATE_VISIBLE_SAME
 ReturnThe new created page.
 ExamplesEx1:
 import PyOrigin
NewBook= PyOrigin.CreatePage(2, 'NewBook','Origin',1)
print('new workbook created')
NewGraph= PyOrigin.CreatePage(3,'NewGraph','Origin',1)
print('new graph created')Ex2:
 #You can also use the page type in this way
import PyOrigin
NewBook= PyOrigin.CreatePage(PyOrigin.PGTYPE_WKS, 'NewBook','Origin',1)
print('new workbook created')
NewGraph= PyOrigin.CreatePage(PyOrigin.PGTYPE_GRAPH, 'NewGraph','Origin',1)
print('new graph created') |