Table of Contents

Method MoveCornerPoint

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

MoveCornerPoint(GeoPoint3, bool)

Drags a corner grip of the XY parameter this property is a distance of, other than its end corner, to a point, as AutoCAD's grip does: the corner takes the distance of one axis from the base point to the point, taken to its value set, and moves the base point along the other axis to the point, the end point staying. The corner of base x and end y (takesXFromEnd false) takes the distance along y; the corner of end x and base y takes the one along x. The INSERT's history gets the one record GRIPLOC of the corner's grip, how far the corner went, in the block's coordinates, in a block that keeps one, and none of the distance or of the base grip, as AutoCAD 2021 wrote it: a plate 100 by 50 of an XY parameter from (0, 0) to (100, 50) whose corner of base x and end y is dragged by (10, 5) reads Width 90 and Height 55, the right edge staying at x 100, and keeps GRIPLOC (10, 5, 0).

public void MoveCornerPoint(GeoPoint3 to, bool takesXFromEnd)

Parameters

to GeoPoint3

The point, in the coordinates of the file (the world's, as Position is given).

takesXFromEnd bool

True for the corner of end x and base y, false for the corner of base x and end y.

Exceptions

ArgumentException

Thrown when the property is not a distance of an XY parameter, or a coordinate of the point is not a finite number.

ArgumentOutOfRangeException

Thrown when a distance of the parameter, taken to the value set, would not be above the point tolerance of Default.

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 MoveBasePoint(GeoVector3) would refuse the block or the INSERT. Nothing is written then.