Method GetDynamicGrips
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetDynamicGrips()
Gets the custom grips AutoCAD shows on the INSERT of a dynamic block selected, where its values put them: a new list on each call, in the order of the parameters of the block's graph. Empty where the INSERT places no dynamic block (IsDynamicBlock).
public IReadOnlyList<DxfDynamicBlockGrip> GetDynamicGrips()
Returns
- IReadOnlyList<DxfDynamicBlockGrip>
The grips, each where the INSERT places it: of a linear or a polar parameter the grip at its end, of an XY parameter the grip at its end and then those at its two other corners (base x with end y, end x with base y), of a rotation parameter the grip at its end, of a flip parameter its grip, of a point, a visibility or a lookup parameter and of a block properties table its grip, where the parameter lists such a grip and gives a property that is not read only. The base grip of a linear or an XY parameter is given, after the end grip, where an action follows its base point (a stretch or a move of BaseXDelta and BaseYDelta, an array), a linear parameter's once the INSERT has saved its values, as AutoCAD 2021 showed it (plugin GhDy2a): its Position is the base point, and MoveBasePoint(GeoVector3) moves it. A polar parameter's base grip is not given, nor is any where no action follows the base point, as a value set moves the end alone; AutoCAD 2021 showed none of an XY parameter then (plugin GhDb1).
Remarks
A grip stands where the block puts it (the position of its grip object of the block's graph), moved as the point it follows moved from the block's own to where the INSERT saved it (as AutoCAD saved it, or a value set here): the end point of a parameter of two points, the base point of a flip parameter, the position of a point, a visibility or a lookup parameter. A flip's grip flipped is mirrored about the reflection line and points the other way.
The door of AutoCAD 2021's Door - Metric sample at (0, 0) gives Door Size at (750, 0), Wall Thickness at (0, -100), Hinge at (375, -312.5), Swing at (375, -150) and Opening Angle at (-125, 375), as AutoCAD gave them (plugin GhDyn1); a rectangle of a Width from (0, 0) to (100, 0) set to 200 on an INSERT at (1 000, 500) gives Width at (1 200, 500), its base point (1 000, 500) and its direction (1, 0). A rectangle 100 by 50 of an XY parameter from (0, 0) to (100, 50) inserted at (1 000, 500) gives its grips at (1 100, 550), (1 000, 550) and (1 100, 500), as AutoCAD 2021 gave them (plugin GhDb1).