C++
Acad::ErrorStatus setDataLink( const AcCellRange& range, 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 |
---|---|
range | Input a range of cells to link to external source. |
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. |