Method Feed
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Feed(GeoPoint2)
Answers the prompt with a point picked on the canvas (already snapped). At "Select objects:" it picks the object nearest the point within PickAperture.
public bool Feed(GeoPoint2 point)
Parameters
pointGeoPoint2The point, in drawing units.
Returns
- bool
Whether the prompt took it.
Feed(GeoPoint2, bool)
Answers the prompt with a point picked on the canvas, as Feed(GeoPoint2) does, saying whether Shift was held: at a prompt for one object the answer carries it (Shift), as TRIM extends an object picked with Shift held, and EXTEND trims one; at "Select objects:" the object picked is taken out of the objects gathered, as AutoCAD takes it out. At any other prompt Shift changes nothing.
public bool Feed(GeoPoint2 point, bool shift)
Parameters
pointGeoPoint2The point, in drawing units.
shiftboolWhether Shift was held as the point was picked.
Returns
- bool
Whether the prompt took it.
Feed(GeoPoint2, bool, bool)
Answers the prompt with a point picked on the canvas, as Feed(GeoPoint2, bool) does, saying whether Ctrl was held too: at a prompt for a point, a distance or an angle the answer carries it (Control), as ARC draws an arc whose end is picked with Ctrl held clockwise rather than counter-clockwise, and a grip edit takes its first point picked with Ctrl held as Copy.
public bool Feed(GeoPoint2 point, bool shift, bool control)
Parameters
pointGeoPoint2The point, in drawing units.
shiftboolWhether Shift was held as the point was picked.
controlboolWhether Ctrl was held as the point was picked.
Returns
- bool
Whether the prompt took it.
Feed(CadSnapResult, bool)
Answers the prompt with a point an object snap gave on the canvas, as Feed(GeoPoint2, bool, bool) answers with its point, keeping which snap and which object gave it: a dimension made with DIMASSOC 2 ties the point to the object, as AutoCAD ties a point picked with ENDpoint, MIDpoint, CENter, QUAdrant, NODe or NEArest. The end of a line snapped with ENDpoint at the first prompt of DIMLINEAR ties the dimension's first point to that end.
public bool Feed(CadSnapResult snapped, bool control)
Parameters
snappedCadSnapResultThe snap's result, as Snap(PickIndex, GeoPoint2, double, GeoPoint2?, GeoPoint2?) gives it.
controlboolWhether Ctrl was held as the point was picked.
Returns
- bool
Whether the prompt took it.
Exceptions
- ArgumentNullException
Thrown when the result is null.
Feed(string)
Takes text typed on the command line and Enter: with no command running, the name of one to start (or Enter alone
running the last again); else the answer to the prompt, a keyword by its capital letters, a number, a point as
x,y, @dx,dy, @distance<angle or distance<angle, a number alone at a point prompt
being a distance along the rubber band towards the cursor. At "Select objects:" the options of AutoCAD 2021: ALL
every object of the space, Window, Crossing and BOX by two corners, Fence, WPolygon and CPolygon by points until
Enter, Last the object made last, Previous the objects the command before took, Group by name, Remove and Add to
take out and put in, Undo the last change, Multiple points until Enter, SIngle to end with the first objects taken,
AUto; a point typed there picks as a click does, "Select objects: 50,0" then "1 found", and where it hits nothing
starts the window as AutoCAD 2021 does, "Select objects: -50,-50" then "Specify opposite corner:"; anything else is
"Invalid selection" with the options listed. A point modifier, FROM, M2P, TT, TK or a point filter, starts at a
prompt for a point or for objects (StartPointModifier(string)). A point typed after an object snap override is
snapped to the object under it, or refused where none is found (SnapOverride).
'PAN or 'ZOOM typed at any prompt but one for text runs inside the command waiting (IsTransparent).
public bool Feed(string text)
Parameters
textstringThe text.
Returns
- bool
Whether it was taken.