Method MoveBasePoint
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
MoveBasePoint(GeoVector3)
Moves the base point of the linear, XY or polar parameter this property is a distance of, as a grip of AutoCAD's moves it: the end point stays, the INSERT keeps the base point where it was moved to, and the block is worked out from there, as with Value. A plate 100 by 50 of an XY parameter from (0, 0) to (100, 50), its right and top edges stretched by the end point, whose base point is moved by (20, 0) reads Width 80 and keeps its right edge at x 100, as AutoCAD 2021 read the plate whose corner of base x and end y was dragged by (20, 10), the top edge going up by 10 with the end point's y (plugin GhDy2a); a stretch or a move tied to the base point (BaseXDelta, BaseYDelta) moves its points by the move, and an array starts where the base point is, as AutoCAD drew the array of its XY sample's INSERT whose base point a grip took from (0, 5) to (0, 104.30). Moves add up: moving by (20, 0) and then by (5, 0) keeps the base point 25 along x. The distances the move leaves are taken to the parameter's value set and the base point stands where they put it, the end point staying, as AutoCAD 2021 read Width 70 and the base point 30 where a panel of Width 50 to 300 by 10 had its base grip dragged by 33, and Width 50 and 50 by 60 (plugin GhDy3a); an axis of an XY parameter the move leaves alone is not taken. The base point of a polar parameter is moved anywhere: a pointer from (0, 0) to (100, 0) whose base point is moved by (30, 10) reads Length 81.39 and Angle 354.3 degrees, its lines stay (the end point stays), and the INSERT's history gets the record GRIPLOC of the parameter's base grip, (30, 10, 0), as AutoCAD 2021 wrote it; a polar stretch worked out after it turns the lines about the new base point, and after an end grip dragged before it works the edits out one after the other, as AutoCAD did (the end grip to (0, 50), the base grip by 30 and the end grip to (35, 0) leave the first line from (45.43, 25.72) to (35, 0), plugin GhDb4a). The history keeps the move of the base grip of a linear or an XY parameter too, in a block that keeps one (a polar parameter, an array or a scale action), and a stretch or an array that follows the base point stays where it stands at the next value set. A move of no more than 1E-12, or one a second move brings back, leaves no record.
public void MoveBasePoint(GeoVector3 by)
Parameters
byGeoVector3The move, in the coordinates of the file (the world's, as Position is given): an XY parameter's along x and along y of the block, a linear parameter's along its line alone, the part across it left out, a polar parameter's anywhere in the plane.
Exceptions
- ArgumentException
Thrown when the property is not a distance of a linear, an XY or a polar parameter.
- ArgumentOutOfRangeException
Thrown when a distance of the parameter would not be above the point tolerance of Default once the base point is moved and the distances taken to the value set.
- 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 the block has a block properties table, a move carries the parameter or carries other parameters by it, a scale or a rotate follows it, the parameter is a polar one whose distance or angle was set away from the values its base point gives the block's own end point and the INSERT keeps no history of the grip edits that led there (AutoCAD 2021 worked them out one after the other), or Value would refuse the block or the INSERT. Nothing is written then.