Share

acdbDoSetupForLayouts()

C++

Acad::ErrorStatus acdbDoSetupForLayouts(
    AcDbDatabase* pDatabase, 
    Adesk::ULongPtr& contextHandle
);

File

AcDbLMgr.h

Description

This function sets the layout manager to work on the database pointed to by pDatabase, even if this database is not loaded in the AutoCAD editor.

When you are done, you must use acdbClearSetupForLayouts(), passing it the contextHandle returned by this function. This action resets the layout manager to work with the document/database it was using before the call to acdbDoSetupForLayouts().

acdbDoSetupForLayouts() calls cannot be nested. acdbClearSetupForLayouts() must be called before another call to acdbDoSetupForLayouts() can be made.

Returns Acad::eOk if successful. Returns Acad::eInvalidInput if pDatabase is null.

Parameters

Parameters Description
pDatabase Input database on which the layout manager is to work
contextHandle Output a handle identifying the document on which the layout manager was working before this call

Previous Declaration

Acad::ErrorStatus acdbDoSetupForLayouts(AcDbDatabase* pDatabase, unsigned int& contextHandle);

Was this information helpful?