Share

wblock Method

Overload List

Method Description
AcDbDatabase::wblock (AcDbDatabase*&) Creates a new AcDbDatabase object, sets pOutputDb to point to it, and then uses the wblockClone mechanism to write the entire contents of the database on which this function is being called out to the new 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.
AcDbDatabase::wblock (AcDbDatabase*&, AcDbObjectId) 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.
AcDbDatabase::wblock (AcDbDatabase*&, AcDbObjectIdArray&, AcGePoint3d&) 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.
AcDbDatabase::wblock (AcDbDatabase*, AcDbObjectIdArray&, AcGePoint3d&, AcDb::DuplicateRecordCloning) This method uses the wblockClone() mechanism to write the array of objects specified by outObjIds to the model space block table record of the database pointed to by pOutputDb, using basePoint as the base point value for pOutputDb.The AcDbDatabase pointed to by pOutputDb must contain a header and symbol tables. Thus, if it was created with the AcDbDatabase constructor's buildDefaultDrawing argument set to false, a drawing must have already been read into it in order to populate it with a header and symbol tables.The drc value determines what happens if symbols or dictionary entries are cloned... more

Was this information helpful?