C++
virtual Acad::ErrorStatus generateNextNewLayoutName( AcString & sName, AcDbDatabase* useDb = nullptr ) = 0;
Description
This function scans the existing layouts (included deleted ones) for name matches of the type "Layout#" where # is a number starting at 1 and increasing. The function starts with Layout1 and keeps trying to find one that isn't already used in this format and then returns it.
Parameters
| Parameters | Description |
|---|---|
| sName | Name of the next layout |
| useDb | Optional input pointer to an AcDbDatabase. The default is to use the current database. |