API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > wblock Method > OdDbDatabase::wblock Method (OdDbObjectId)
OdDbDatabase::wblock Method (OdDbObjectId)
Syntax
C++
OdDbDatabasePtr wblock(OdDbObjectId blockId);
Parameters 
Description 
OdDbObjectId blockId 
[in] Object ID of the BlockTableRecord to be cloned. 

Clones specified objects of this database to a new database. 

 

The method creates a new OdDbDatabase object, populates it with specified objects from this database using the wblockClone() method and returns a smart pointer to the new database. All objects are copied with their dependencies. For example, if a text entity uses a specific textstyle, it will be copied as well; line entities will be copied with their linestyles, etc.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.