Table of Contents

Method Of

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Of(DxfEntity)

Gets the grips of an entity. A dimension's, as AutoCAD 2021's: a linear or aligned one's two extension line origins, the two ends of its dimension line, then its words; a radius's chord point and its words, a diameter's two chord points and its words; a three-point angle's vertex, its two line points, its arc and its words, an angle between two lines the two ends of each line, its arc and its words; an ordinate's feature and its leader's end. A dimension drawn in no plan, or with no picture of its own, has none. An MTEXT's, as AutoCAD 2021's: the four corners of its box (its defined width by its defined height, or with none the height of its lines) from the top left, the top right, the bottom left to the bottom right, the corner its location is at the grip of its insertion; its location first, a fifth grip, where it is at no corner (held at a middle); the top right, bottom left and bottom right corners carry the way their triangles point (Direction). In columns, as AutoCAD 2021's: its location, the first column's width at its top right, then for columns of one height the corner of the last column and the height under the location, for dynamic columns of their own heights a height grip under the middle of each column, and last, in two columns or more, the gutter grip at the last column's top right; two static columns 120 wide with a gutter of 20 and a height of 100, held at the top left, have them at (0, 0), (120, 0), (260, -100), (0, -100) and (260, 0). Held at the right or the bottom they stand at the other side, pointing the other way. Its location alone for an MTEXT of no width or out of the plan. A TOLERANCE's, as AutoCAD 2021 shows it: its insertion point alone. A table's, as AutoCAD 2021's: its move grip at the top left, a column grip at each line between columns on its top edge, its width, height and size stretch grips at the top right, bottom left and bottom right, and the table breaking grip under the middle of its bottom edge, which is not offered. A block reference's, after its insertion point and its dynamic block's grips, where it is clipped by XCLIP, as AutoCAD 2021's: an arrow at the middle of the boundary's first side (ClipFlip, its Direction across the side to what the clip hides) and a grip at each corner of a rectangle, from its lower left counter-clockwise, or each vertex of a polygon (ClipVertex); a block 100 by 100 clipped to the rectangle (20, 20) to (60, 70) has grips at (40, 20), the arrow, then (20, 20), (60, 20), (60, 70) and (20, 70). An OLE frame's, as AutoCAD 2021 gives them: a grip at each corner, from the lower left, the upper left and the upper right to the lower right (Corner); a frame 40 by 20 with its lower left corner at (10, 20) has them at (10, 20), (10, 40), (50, 40) and (50, 20). A frame of no size has none. A multiline's, as AutoCAD 2021's: one at each vertex of the line it is drawn on, (0, 0), (100, 0) and (100, 100) for one through those points. A 2D POLYLINE of straight and arc segments has a light polyline's grips (a vertex grip on each vertex, then a segment middle grip on each segment); one fitted with a curve or a spline has a vertex grip on each vertex of its frame alone (four for a frame of four, whatever the curve has added), as AutoCAD 2021's GetGripPoints gives them, and dragging one fits the curve or the spline again. A spline's, as AutoCAD 2021's: a vertex grip on each fit point, or on each control point where it has no fit data; a cubic through (0, 0), (30, 40), (60, 0) and (90, 40) has grips at those four points. A hatch's, one at the middle of the box its loops fill (Center): a rectangle 100 by 60 has it at (50, 30); where the hatch follows no objects (is not associative) then those of its boundary, as AutoCAD 2021's GetGripPoints gives them: for each loop a vertex grip and one in the middle of the segment that leaves it (Vertex and Middle), or the east, west, north and south of a loop that is one circle (Quadrant); a rectangle 100 by 60 has eight, from (0, 0), (50, 0), (100, 0), (100, 30) to (0, 30), after the one at (50, 30).

public static IReadOnlyList<CadGrip> Of(DxfEntity entity)

Parameters

entity DxfEntity

The entity.

Returns

IReadOnlyList<CadGrip>

The grips in the order of their indices; empty for an entity with none.

Exceptions

ArgumentNullException

Thrown when the entity is null.