Share

AcDbDatabase::wblock

C++

Acad::ErrorStatus wblock(
    AcDbDatabase*& pOutputDb, 
    AcDbObjectId blockId
);

Description

Creates a new AcDbDatabase object and sets pOutputDb to point to it. The new object then uses the wblockClone mechanism to write the contents of the AcDbBlockTableRecord, specified by blockId, out to the Model Space of the database pointed to by 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.

Parameters

Parameters Description
pOutputDb Returns pointing to the database that was written to
blockId Object ID of AcDbBlockTableRecord to write out

Links

AcDbDatabase Class

Was this information helpful?