API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > setBlockTableRecordId Method > OdDbTable::setBlockTableRecordId Method (OdInt32, OdInt32, OdInt32, OdDbObjectId&, bool)
OdDbTable::setBlockTableRecordId Method (OdInt32, OdInt32, OdInt32, OdDbObjectId&, bool)
Syntax
C++
void setBlockTableRecordId(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdDbObjectId& blkId, bool autoFit);
Parameters 
Description 
OdInt32 row 
[in] Row index of the cell.  
OdInt32 col 
[in] Column index of the cell.  
OdInt32 nContent 
[in] Number of content.  
const OdDbObjectId& blkId 
[in] Id of block table record.  
bool autoFit 
[in] Flag that indicates whether the block should be auto fit. 

Sets the ID of the block table record of the cell as an object of the OdDbObjectId class. 

 

Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the table size. Method generates the eIsWriteProtected exception when content is not editable (!isContentEditable()).

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