Method StartGripEdit
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
StartGripEdit(IEnumerable<KeyValuePair<string, int>>)
Starts a grip edit, as a click on a grip starts AutoCAD's with no command running: the grips given are hot, the first the one clicked, and the command line asks "** STRETCH **" and "Specify stretch point or [Base point/Copy/Undo/eXit]:". Enter or Space goes on to MOVE, ROTATE, SCALE and MIRROR and back to STRETCH; STRETCH, MOVE, ROTATE, SCALE and MIRROR, or ST, MO, RO, SC and MI, typed go to that mode. STRETCH moves the hot grips together by the way from the base point, the first hot grip until Base point gives another; the other modes move, turn, scale or mirror the objects selected. Copy leaves the originals and asks again until eXit, Enter or Esc, as does a first point picked with Ctrl held (Feed(GeoPoint2, bool, bool)). The whole grip edit is one undo step; the command run last stays the one Enter runs again. With one hot grip that has a menu of two items or more, CycleGripOption() goes on to its next option.
public bool StartGripEdit(IEnumerable<KeyValuePair<string, int>> hotGrips)
Parameters
hotGripsIEnumerable<KeyValuePair<string, int>>The hot grips, each the handle of an entity and the index of its grip as Of(DxfEntity) gives it.
Returns
- bool
False, starting nothing, where a command is running or no grip given is one of an entity of the drawing.
Exceptions
- ArgumentNullException
Thrown when the grips are null.