C++
virtual int pageSetup( AcDbObjectId layoutBTRId = AcDbObjectId::kNull, void* pParent = nullptr, Adesk::Boolean isPageSetupDlg = true ) = 0;
Description
By default, this function launches the Page Setup dialog with the current AcDbLayout object. Optionally, this function takes arguments to initialize it with a different AcDbLayout object, a pointer to a different parent window, and whether to bring up the shared Plot dialog instead of the Page Setup dialog.
The function returns O if the Page Setup dialog has been canceled; 1 if the the Page Setup dialog has succeeded; and -1 for any error conditions.
Parameters
| Parameters | Description |
|---|---|
| layoutBTRId | Optional input AcDbObjectId for the AcDbLayout block table record to initialize the dialog with. The default argument AcDbObjectId::kNull indicates to use the active AcDbLayout object. |
| pParent | Optional input pointer to parent window calling dialog. The default NULL argument indicates to use AutoCAD's main window. |
| isPageSetupDlg | Input Boolean to switch between the Page Setup and the Plot dialog. |