3.2.22 LayoutPages


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())