C++
virtual ACDBCORE2D_PORT bool setMapFlag( bool setIt );
Description
Called by an application to turn off file mapping.
In certain APIs that work with files, file mapping is a part of the implementation of the API. This gives applications an opportunity to map the file before the operation continues. But if that API is invoked and the file that is passed in is the result of a file selection, then most likely a file mapping is not desirable since a selection override could have happened. For example, this might happen if the selection used a call to acedGetFileD(). So, temporarily turn off file mapping by calling the setMapFlag() function.
As a precaution against someone permanently turning off file mapping, it is automatically turned on in AcDbHostApplicationServices::mapFile() each time mapFile() is called. That means you need to turn it off before calling every API in which you do not want mapping to happen.
Parameters
Parameters | Description |
---|---|
setIt | Setting for file mapping |