Method MoveEndPoint
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
MoveEndPoint(GeoPoint3)
Drags the end grip of the linear, XY, polar, rotation or point parameter this property is a distance, an angle or a position of to a point, as AutoCAD's grip does: the distance and the angle of the point from the base point, taken to their value sets, are the parameter's values, the block is worked out from them (a polar stretch turning and moving what it holds), and the INSERT's history gets the record GRIPLOC of the parameter's end grip, how far the end point went in this drag, in the block's coordinates, as AutoCAD 2021 wrote it. A pointer of two lines from (0, 0) to (100, 0), at (1 000, 500), whose end grip is dragged to (1 000, 550) reads Length 50 and Angle 90 degrees, runs its line to (0, 50) and keeps GRIPLOC (-100, 50, 0); dragged to (1 010, 500) next it keeps the one record, (-90, 0, 0), the two moves added, unless another record came between (plugin GhDy3a). The end grip of a linear parameter takes the distance along its line from the base point, that of an XY parameter each distance along its axis, each taken to its value set, and the history keeps the same GRIPLOC of the grip in a block that keeps one (plugin GhDb4a). The grip of a point parameter takes the position to the point (by (20, 10) it keeps GRIPLOC (20, 10, 0)), and the end grip of a rotation parameter takes the angle of the point about the base point from its base angle, to its value set: a bar 60 long about (0, 300) whose end grip goes from (60, 300) to (0, 360) reads a quarter turn and keeps GRIPLOC (-60, 60, 0), as AutoCAD 2021 wrote them.
public void MoveEndPoint(GeoPoint3 to)
Parameters
Exceptions
- ArgumentException
Thrown when the property is not a distance, an angle or a position of a linear, an XY, a polar, a rotation or a point parameter, or a coordinate of the point is not a finite number.
- ArgumentOutOfRangeException
Thrown when the distance, taken to the value set, would not be above the point tolerance of Default, or the point of a rotation parameter's end grip is not that far from its base point.
- InvalidOperationException
Thrown when the property is read only, or its INSERT is erased, in no drawing, or scaled unlike along its axes.
- NotSupportedException
Thrown when Value would refuse the block or the INSERT. Nothing is written then.