Table of Contents

Method SetAssociatedObjects

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetAssociatedObjects(IReadOnlyList<IReadOnlyList<DxfEntity>>)

Makes the HATCH follow the objects each of its loops was made of, as AutoCAD keeps a HATCH made associative by picking a point or selecting objects: each loop given the handles of its objects after their count (groups 97 and 330), group 71 written 1 (Associative), and the HATCH put among the reactors of each object (102 {ACAD_REACTORS); the objects it followed before let go first. The loops are left as they are: a square hatched from a point inside its four LINEs follows the four, and GetAssociatedObjectsAt(int) gives them. AutoCAD makes the loops anew when such an object changes; the library does not.

public void SetAssociatedObjects(IReadOnlyList<IReadOnlyList<DxfEntity>> objects)

Parameters

objects IReadOnlyList<IReadOnlyList<DxfEntity>>

For each loop, in the order of the loops, the entities of the drawing it was made of; an empty list for a loop made of none.

Exceptions

ArgumentNullException

Thrown when the list, a list of a loop or an entity is null.

ArgumentException

Thrown when the lists are not one for each loop, or an entity is not of the HATCH's drawing or is erased.

InvalidOperationException

Thrown when the HATCH is in no drawing or is erased.