8.2.22 LayoutPages

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

Get the LayoutPages

Syntax

LayoutPages(PageName)
LayoutPages()

Parameters

  1. PageName
  2. no-argument

Return

LayoutPages

Examples

EX1

import PyOrigin
#Get the LayoutPage for the layout window in Origin having the short name
lp = PyOrigin.LayoutPages('name')
if(lp.IsValid()): 
#Prthe LayoutPage object name
    print(lp.GetFolder())

EX2

import PyOrigin
if PyOrigin.LayoutPages().GetCount() > 0:
    # Loop for each layout page.
    print('Prall layout name:')
    for layout in PyOrigin.LayoutPages():
                print(layout.GetName())