C++
Acad::ErrorStatus setDataLink( int nRow, int nCol, const AcDbObjectId& idDataLink, bool bUpdate );
Description
Sets the specified data link in a cell.
If the specified cell is top-left cell of an existing linked range this will overwrite the current data link. If it is any other cell in a linked range the function will fail. This function does not automatically update the data; call updateDataLink() to update the data.
Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.
Parameters
Parameters | Description |
---|---|
nRow | Input row index. It should be more than or equal to 0 and less than the number of rows. |
nCol | Input column index. It should be more than or equal to 0 and less than the number of columns. |
idDataLink | Input ID of the data link to set |
bUpdate | Input true if the data link is to be updated after setting it, false if not. |