C++
virtual Acad::ErrorStatus setCurrentLayout( const ACHAR * newname, AcDbDatabase* pDb = NULL ) = 0;
Description
This function sets the layout named newname as the current layout in the database pointed to by pDb. If pDb is NULL, then the current workingDatabase will be used.
Parameters
| Parameters | Description |
|---|---|
| newname | Input name of layout to be set as current. |
| pDb | Input AcDbDatabase to use. |
Returns
Returns Acad::eOk if successful.