Table of Contents

Method SetDataLink

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Links a cell to a data link of the drawing, as AutoCAD's SetDataLink(row, column, id, update): the range of that one cell linked, as SetDataLink(DxfCellRange, DxfDataLink) links one.

public void SetDataLink(int row, int column, DxfDataLink dataLink)

Parameters

row int

The row, from nought.

column int

The column, from nought.

dataLink DxfDataLink

The link, one of the table's drawing.

Exceptions

ArgumentNullException

Thrown when the link is null.

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's.

ArgumentException

Thrown when the link is not one of the table's drawing, or is erased.

InvalidOperationException

Thrown when the table is erased, is of a drawing before R2007, has a TABLECONTENT with no such cell, or the cell is in a range linked otherwise.

Links a range of cells to a data link of the drawing, as AutoCAD's SetDataLink(range, id, update) puts one in: in the TABLECONTENT AutoCAD keeps for the table, the range's top left cell given the flag 4 of a linked cell in its state, its 92 after its custom data made odd and the run after it AutoCAD writes, the DATALINK's handle (340), the range's rows (93) and columns (94) and 96 1; the DATALINK tied to the table and to its TABLECONTENT, their handles (330) put after those it is tied to already and its count (94) made to agree. AutoCAD 2021 linked the table F6 at (1, 0) so: its TABLECONTENT 187's cell (1, 0) of 90 4, 92 1, 340 142, 93 1, 94 1, 96 1, and the DATALINK 142 of 94 2, 330 F6, 330 187; it took the cells of the ACAD_TABLE where the checksum of the TABLECONTENT's did not agree with them, and kept the link (its 73-d). The cells keep what they hold: the library does not read the link's source, so its data come in when AutoCAD updates the link, as update asks AutoCAD to. Nothing where the range is linked so already. A table of no TABLECONTENT, as a program other than AutoCAD writes one, is given one first, as AutoCAD 2021 gave the ezdxf table of its 73 one when it linked it: an XRECORD of ACAD_ROUNDTRIP_2008_TABLE_ENTITY under ACAD_XREC_ROUNDTRIP in its extension dictionary, the TABLECONTENT of its columns and rows, each cell of no content, the table and its style listed in ACDB_RECOMPOSE_DATA, without which AutoCAD reads no TABLECONTENT, and the class TABLECONTENT; AutoCAD 2021 read the library's link of (1, 0) so made, in R2018 and R2007. A range of several cells so linked, its cells of no content, AutoCAD reads linked at every cell, as IsLinked(int, int) does. A table whose TABLECONTENT the drawing's ACDB_RECOMPOSE_DATA does not list is listed there, the record made where it has none, as AutoCAD reads no link of another; the links its TABLECONTENT names read from then on, and a range that meets one is refused.

public void SetDataLink(DxfCellRange range, DxfDataLink dataLink)

Parameters

range DxfCellRange

The cells, within the table.

dataLink DxfDataLink

The link, one of the table's drawing.

Exceptions

ArgumentNullException

Thrown when the range or the link is null.

ArgumentOutOfRangeException

Thrown when the range reaches past the table's rows or columns.

ArgumentException

Thrown when the link is not one of the table's drawing, or is erased.

InvalidOperationException

Thrown when the table is erased; when it is of a drawing before R2007, which holds no TABLECONTENT, or its record does not hold its cells, heights and widths; when its TABLECONTENT has no cell at the range's top left; or when the range meets a range linked otherwise, which is to be taken away first (RemoveDataLink(int, int)).