Method StartGripAction
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
StartGripAction(string, int, CadGripAction)
Starts an item of a multi-functional grip's hover menu (Of(CadDocument, string, int)), as a choice in AutoCAD 2021's menu starts it. Stretch and Stretch Vertex are the grip edit of StartGripEdit(IEnumerable<KeyValuePair<string, int>>), asking "** STRETCH " as AutoCAD's table of the polyline's grip modes does. Add Vertex asks " ADD VERTEX " and "Specify new vertex point or [Base point/Copy/Undo/eXit]:", the polyline drawn with the vertex at the cursor, and puts the vertex after the grip's vertex (with Copy on it asks again, each vertex after the last, until eXit or Enter; Undo takes the last one back). Convert to Arc asks " CONVERT TO ARC " and "Specify midpoint of arc segment:" and makes the segment the arc through the point; Convert to Line makes the arc segment straight at once, asking nothing. Remove Vertex takes the vertex out at once, asking nothing (a spline's fit point or control vertex likewise). A line's or an arc's end offers Lengthen (" LENGTHEN ", "Specify end point:"), the middle of an arc Radius (" RADIUS ", "Specify radius:"), a hatch Hatch Scale, Hatch Angle and Origin Point, a spline's point its own Add Vertex (" ADD FIT POINT " or " ADD CONTROL VERTEX "). Lengthen and Radius also have Copy and Undo. A linear dimension's grips offer Continue Dimension and Baseline Dimension (the row DIMCONTINUE or DIMBASELINE makes), its arrowheads Flip Arrow (" FLIP ARROW**", "Pick to flip arrowhead:"), the grip of its words Move Text Only, Move with Leader, Move with Dim Line, Above Dim Line, Center Vertically and Reset Text Position. Every item is one undo step, and Esc at a prompt changes nothing.
public bool StartGripAction(string handle, int gripIndex, CadGripAction action)
Parameters
handlestringThe handle of the polyline, line, arc, spline or hatch.
gripIndexintThe index of its grip, as Of(DxfEntity) gives it.
actionCadGripActionThe item.
Returns
- bool
False, starting nothing, where a command is running or the grip's menu has no such item or has it grey.