AcMapMbMapBookManager::SetCurrent Method

Land Desktop Development ARX CPP SDK

AcMapMbMapBookManager:: SetCurrent Method
 

Sets the current Map Book.

static Acad::ErrorStatus SetCurrent(
    const AcDbObjectId& Id, 
    AcDbDatabase* pDatabase = NULL
);
Parameters 
Description 
Id 
Input ID of the Map Book to set current. Null Id corresponds to current Map Book state. Id should belong to the specified database. Even if a source Display Map or Map scale are missing or a system cannot find the Sheet Set set file associated with the specified Map Book the operation succeeds, however an appropriate error code is returned in these cases.  
pDatabase 
Input pointer to a drawing database  
Returns

Returns Acad::eOk if successful; returns Acad::eKeyNotFound if DM Map or scale is missing returns Acad::eFileNotFound if proper sheet set not found; returns Acad::eInProcessOfCommitting in the case new Map Book required switching Display Map but there are uncomitted edits; otherwise, returns a different error code.

Remarks

In the case a Map Book has a Display Map as a source, resets the proper current Display Map. In the case there are uncommitted edits, setting current Display Map and respectively current Map Book fails.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].