Method FeedSelection
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
FeedSelection(IEnumerable<string>, bool)
Answers "Select objects:" with objects picked by a click, a window or a crossing box, or with Shift held takes them out of those gathered: "1 found, 1 removed, 2 total". At "Remove objects:" they are taken out either way. At a prompt for one object, the first.
public bool FeedSelection(IEnumerable<string> handles, bool remove = false)
Parameters
handlesIEnumerable<string>The handles.
removeboolWhether they are taken out, as a pick or a box with Shift held takes them out.
Returns
- bool
Whether the prompt took them.
Exceptions
- ArgumentNullException
Thrown when the handles are null.
FeedSelection(IEnumerable<string>, DisplayBox, bool, bool)
Answers "Select objects:" with the objects a window or crossing box dragged on the canvas took, as FeedSelection(IEnumerable<string>, bool) does, the box kept with them: -ATTEDIT then takes only the attributes of an INSERT that lie inside the window, or that the crossing box touches, as AutoCAD's does.
public bool FeedSelection(IEnumerable<string> handles, DisplayBox window, bool crossing, bool remove = false)
Parameters
handlesIEnumerable<string>The handles the box took.
windowDisplayBoxThe box, in the coordinates of the space.
crossingboolWhether the box was a crossing one (dragged right to left), which takes what it touches.
removeboolWhether they are taken out, as a box with Shift held takes them out.
Returns
- bool
Whether the prompt took them.
Exceptions
- ArgumentNullException
Thrown when the handles are null.