API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > insert Method > OdDbDatabase::insert Method (OdGeMatrix3d&, OdDbDatabase*, bool)
OdDbDatabase::insert Method (OdGeMatrix3d&, OdDbDatabase*, bool)
Syntax
C++
void insert(const OdGeMatrix3d& xfm, OdDbDatabase* pSource, bool preserveSourceDatabase = true);
Parameters 
Description 
const OdGeMatrix3d& xfm 
[in] Transformation matrix.  
OdDbDatabase* pSource 
[in] Source database.  
bool preserveSourceDatabase = true 
[in] Not used. Objects from the source database are always copied, not moved. 

Copies the content of a specified database to this database. 

 

The data that will be copied includes content of the folloowing enities:

  • BlockTable
  • LayerTable
  • LinetypeTable
  • DimStyleTable
  • RegAppTable
  • TextStyleTable
  • PlotStyleNameDictionary
  • PlotSettingsDictionary
  • MLStyleDictionary
  • ColorDictionary
  • MaterialDictionary
  • TableStyleDictionary
  • MLeaderStyleDictionary
  • ScaleListDictionary
  • VisualStyleDictionary
  • GroupDictionary

 

Unlike the wblockCloneObjects() method, insert() also copies the sortens table. While copying duplicate objects, names will be ignored; a destination object that has the same name as the source object will be rewritten by the source one. 

All model space entities in pSource are copied into model space of this database object and transformed by xfm.

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