Share

AcDbLayoutManager::findLayoutNamed

C++

virtual AcDbObjectId findLayoutNamed(
    const ACHAR* name, 
    const AcDbDatabase* pDb = NULL
) = 0;

Description

This function finds the layout "name" in the database pointed to by pDb (or the workingDatabase if pDb is NULL) and returns a pointer to that layout object or NULL if no layout with that name is found. If leaveRecordOpen is false, then this function will open the layout for read and close it before returning. If leaveRecordOpen is true, then this function will open the layout for write and leave it open when it returns. Passing in false for leaveRecordOpen is useful when all you want to use the returned pointer for is as a bool to determine if the layout was found or not, but the returned pointer should not be used to access any object methods since the object it points to is closed.

Parameters

Parameters Description
name Input name of layout to find.
pDb Input AcDbDatabase to use.

Links

AcDbLayoutManager

Was this information helpful?