Oasys.D3PLOT.Page class¶
Constants¶
Layout¶
- Page.LAYOUT_1_1¶
Layout with 1x1 windows per page
- Page.LAYOUT_2_2¶
Layout with 2x2 windows per page
- Page.LAYOUT_3_3¶
Layout with 3x3 windows per page
- Page.LAYOUT_CUSTOM¶
Custom layout with user defined numer of windows per page
- Page.LAYOUT_TILE_TALL¶
Layout with tall tiles
- Page.LAYOUT_TILE_WIDE¶
Layout with wide tiles
Properties¶
- property Page.number: integer¶
The page number
- property Page.x: integer¶
The number of windows in X for the
LAYOUT_CUSTOM
case
- property Page.y: integer¶
The number of windows in Y for the
LAYOUT_CUSTOM
case
Static methods¶
- classmethod Page.First()¶
Returns the Page object for the first page in D3PLOT
- Returns:
Page object
- Return type:
Page
Example
To get the Page object for the first page:
p = Oasys.D3PLOT.Page.First()
- classmethod Page.GetFromID(page_number)¶
Returns the Page object for a page ID
- Parameters:
page_number (integer) – number of the page you want the Page object for
- Returns:
Page object
- Return type:
Page
Example
To get the Page object for page number 1
p = Oasys.D3PLOT.Page.GetFromID(1)
- classmethod Page.Last()¶
Returns the Page object for the last page in D3PLOT
- Returns:
Page object
- Return type:
Page
Example
To get the Page object for the last page:
p = Oasys.D3PLOT.Page.Last()
- classmethod Page.Total()¶
Returns the total number of pages in D3PLOT
- Returns:
Total number of pages
- Return type:
integer
Example
To get total number of pages:
total = Oasys.D3PLOT.Page.Total()
Instance methods¶
- Page.Next()¶
Returns the next page (or None if there is not one)
- Returns:
Page object
- Return type:
Page
Example
To get the page after page p:
p = p.Next()
- Page.Previous()¶
Returns the previous page (or None if there is not one)
- Returns:
Page object
- Return type:
Page
Example
To get the page before page p:
p = p.Previous()
- Page.Show()¶
Shows this page in D3PLOT
- Returns:
No return value
- Return type:
None
Example
To show page p:
p.Show()