Share

AcDbDatabase::wblock

C++

Acad::ErrorStatus wblock(
    AcDbDatabase*& pOutputDb, 
    const AcDbObjectIdArray& outObjIds, 
    const AcGePoint3d& basePoint
);

Description

Creates a new AcDbDatabase object, sets pOutputDb to point to it, and then uses the wblockClone mechanism to write the array of objects specified by outObjId entities out to the Model Space block table record of the database pointed to by pOutputDb, using basePoint as the base point value for pOutputDb.

The calling application is responsible for deallocating (via the C++ delete operator) the AcDbDatabase object that pOutputDb is set to point to.

Returns Acad::eOk if operation is successful.

See the BASE command documentation in the AutoCAD online help for more information on base point.

Parameters

Parameters Description
pOutputDb Returns pointer to the database that was written to
outObjIds Input array of objectId entities of all objects to be wblocked out
basePoint Input base point (in WCS coordinates for pOutputDb) to be used in pOutputDb

Links

AcDbDatabase Class

Was this information helpful?