Method CountHardReferences
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
CountHardReferences(IReadOnlyList<DxfDBObject>, int[])
Counts the hard references to objects of the drawing, as AutoCAD's CountHardReferences, each added to the
count of the same place: every hard pointer and hard owner of the drawing that names the object's handle (340 to 349,
360 to 369, 390 to 399, 480 and 481 of every record, an extension dictionary's 360 among them), each handle of
extended data of any application (1005, as the overrides of a dimension name its arrow blocks and its text style), the
arrow an override of a dimension of R12 names by name (1070 5, 6 or 7, then 1000 the block's name), and each layer a
viewport freezes (331); and for a record of a table each group where the DXF writes by name what AutoCAD's database
holds as a hard pointer to it: the layer (8) and linetype (6) of every entity, a vertex and an attribute among them,
the linetype of a layer and of a multiline style, the text style of a text, of a cell of a table and of a table
style (7), the dimension style of a dimension, a leader or a tolerance (3), the block of an INSERT, a dimension or a
table (2), a layer a viewport of a drawing before R2000 freezes by name (1003), and the variables of the header that
name one ($CLAYER, $CELTYPE, $TEXTSTYLE, $DIMSTYLE, $DIMBLK, $CMLSTYLE
and their kin). An entity is owned hard by its block, or by the entity it follows, and counts that one besides.
public void CountHardReferences(IReadOnlyList<DxfDBObject> ids, int[] count)
Parameters
idsIReadOnlyList<DxfDBObject>The objects, of this drawing and not erased.
countint[]The counts, one for each object at its place, each added to.
Remarks
The drawing is walked once for all the objects. A layer steel two lines are on and a viewport freezes counts 3; a group left out, the record leaving its layer or style to the default (a TEXT with no 7 is in Standard), is not counted.
Exceptions
- ArgumentNullException
Thrown when the objects or the counts are null.
- ArgumentException
Thrown when an object is null, erased or not of this drawing, or the counts are fewer than the objects.