C++
virtual const ACHAR * findActiveLayout( bool allowModel, const AcDbDatabase* pDb = nullptr );
Description
If allowModel is true, then this function will return the name of the active layout in the database pointed to by pDb (or the workingDatabase if pDb is NULL) even if the layout is the ModelSpace layout. If allowModel is false, then the current PaperSpace layout name will be returned even if it is not the currently active layout.
Parameters
| Parameters | Description |
|---|---|
| allowModel | Input bool indicating whether or not to allow the ModelSpace layout to be included. |
| pDb | Input AcDbDatabase to use. |