API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > setBlockTableRecordId Method > OdDbTable::setBlockTableRecordId Method (OdUInt32, OdUInt32, OdDbObjectId&, bool)
OdDbTable::setBlockTableRecordId Method (OdUInt32, OdUInt32, OdDbObjectId&, bool)
Syntax
C++
virtual void setBlockTableRecordId(OdUInt32 row, OdUInt32 column, const OdDbObjectId& blockId, bool autoScale = false);
Parameters 
Description 
OdUInt32 row 
[in] Row index of the cell.  
OdUInt32 column 
[in] Column index of the cell.  
const OdDbObjectId& blockId 
[in] Object ID of the block.  
bool autoScale = false 
[in] If true, autoscales the block to the cell. 

Sets the Object ID of the block table record in the specified cell in this table entity. 

 

Method generates the eInvalidInput exception when the row argument is more than the number of rows, the column argument is more than the number of columns, the cell type is not OdDb::kBlockCell, or the object ID is invalid or kNull.

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