C++
virtual Acad::ErrorStatus copyLayout( const ACHAR * copyname, const ACHAR * newname, AcDbDatabase* pDb = NULL ) = 0;
Description
This function creates a copy of the layout named copyname in the database pointed to by pDb (or the workingDatabase if pDb is NULL) and names the copy newname.
Parameters
| Parameters | Description |
|---|---|
| copyname | Input name of layout to copy. |
| newname | Input name to be given to the layout copy. |
| pDb | Input AcDbDatabase to use. |
Returns
Returns Acad::eOk if successful. Returns Acad::eMaxLayouts if there are already the maximum number of layouts in the database. Returns Acad::eRenameInvalidLayoutName if newname > 255 characters long. Returns Acad::eCopyDoesNotExist if there is no layout named copyname. Returns Acad::eCopyIsModelSpace if copyname is the ModelSpace layout