Class DxfDynamicBlockGrip
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
One custom grip of an INSERT of a dynamic block, as AutoCAD shows it on the INSERT selected: what it drives, where it is and the point it is dragged from, in the coordinates of the file, as GetDynamicGrips() gives them.
public sealed class DxfDynamicBlockGrip
- Inheritance
-
DxfDynamicBlockGrip
- Inherited Members
Remarks
The door of a Width from (0, 0) to (900, 0), inserted at (1 000, 500) and turned a quarter turn, gives a Linear grip at (1 000, 1 400), of the base point (1 000, 500) and the direction (0, 1), driving Width; dragged to (1 000, 1 500) it asks a Width of 1 000.
Properties
- BasePoint
Gets the point the parameter measures from, in the coordinates of the file: the base point of a linear, a polar, an XY (for each of its three grips) or a rotation parameter, the start of a flip parameter's reflection line, the grip's own position for a point, a visibility or a lookup parameter and a block properties table.
- Direction
Gets the way the grip points, a unit vector in the coordinates of the file: from the base point to the end of a linear parameter; across a flip parameter's reflection line, to its left looking along it and to its right while flipped; nought for the others.
- GripType
Gets the kind of parameter the grip drives.
- Position
Gets where the grip is, in the coordinates of the file: where the INSERT's values put it. The base grip of a linear or an XY parameter stands at its BasePoint.
- PropertyNames
Gets the names of the properties the grip sets, as PropertyName gives them: one for a linear, a rotation, a flip, a visibility or a lookup parameter and a block properties table (Block Table1); the distance and then the angle of a polar one; the x and then the y of a point one and of each grip of an XY one.
Methods
- ToString()
Gives the grip as a line for debugging: its kind, its properties and its position.