.. highlightlang:: us .. _auto_addpage: auto_AddPage ============ .. index:: auto_AddPage .. us.tag auto_AddPage ENGLISH :ref:`auto_AddPage` adds a new page to the document. .. function:: auto_AddPage() .. us.comment **Comment** This function should be called before :ref:`auto_LoadTemplate`. In this case, the new page will be added to the active document. .. us.example **Example** :: auto_AddToUI("Test", "Test", "RS_Test_1"); def RS_Test_1() { auto_LoadTemplate("tpl_ger"); // Call other auto_ - functions here auto_UpdatePage(); auto_AddPage(); auto_LoadTemplate("tpl_ger"); // Call other auto_ - functions here auto_UpdatePage(); } .. seealso:: :ref:`overview-automation`, :ref:`auto_LoadTemplate` :sub:`id-1084986`