3.2.33 Pages


Description

Get the Pages object

Syntax

Pages(name)
Pages()

Parameters

  1. Page Name
  2. no-argument

Return

Origin Pages

Examples

EX1

import PyOrigin
PyOrigin.Pages('Book1').AddLayer('MySheet')

EX2

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