Get the parent Page object that contains the layer.
Page GetPage( )
The parent Page object
//Get the graph page's name which contains the active layer.
// Create a layer object and attach to the currently active layer
Layer ly = Project.ActiveLayer();
if( ly.IsValid() )
// Get the parent page that contains this layer and report its name
Page pg = ly.GetPage();
printf( "Active layer is contained in page: %s\n", pg.GetName() );
out_str( "No active layer found" );