Share

AcDbLayoutManager::cloneLayout

C++

virtual Acad::ErrorStatus cloneLayout(
    AcDbLayout* pLBTR, 
    const ACHAR * newname, 
    int newTabOrder = 0, 
    AcDbDatabase* pDb = NULL
) = 0;

Description

This function copies the layout pointed to by pLBTR which must be in the database pointed to by pDb (or the workingDatabase if pDb is NULL), adds it to the same database using the name newname, sets it in the layout tab order at index newTabOrder, then closes both the layout pointed to by pLBTR and the newly created layout.

Parameters

Parameters Description
pLBTR Input pointer to layout to clone.
newname Input name for layout clone.
newTabOrder Input tab index for the location of the new layout.
pDb >Input AcDbDatabase to use.

Returns

Returns Acad::eOk if successful. Returns Acad::eCopyNameExists if newname already exists in the database. Returns Acad::eMaxLayouts if there are already the maximum number of layouts in the database. Returns Acad::eCopyIsModelSpace if pLBTR is the ModelSpace layout.

Links

AcDbLayoutManager

Was this information helpful?