HOW TO
The PageManager takes page size input from the user and matches the dimensions to the best available page size in the form of one of the page size enumerators.
Code:
'-- Assumes that the active doc is a layout with included graphics
aLayout=av.getactivedoc.getdisplay
aPoint=Point.Make(7,10) 'the page size is 7 by 10 units
aSize= aLayout.SetPageSize(aPoint)
msgbox.info(aPoint.asstring,"The page size is:")
aPage =aLayout.SetPageSize(aPoint)
msgbox.info((PageManager.FindSize(aPoint).asstring),"The enumerator used is:")
Article ID:000003644
Get help from ArcGIS experts
Download the Esri Support App