Table of Contents

Method StartPointModifier

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

StartPointModifier(string)

Starts a point modifier at a prompt that takes a point, as AutoCAD's: FROM (or FRO) asks "Base point:" then "<Offset>:" and gives the offset point, an offset typed as @dx,dy or @distance&lt;angle being measured from the base point; M2P or MTP asks "First point of mid:" and "Second point of mid:" and gives the point midway; TT asks "Specify temporary OTRACK point:" and asks the first prompt again with tracking lines from the point (TemporaryTrackPoints); TK (TRACK, TRACKING) asks "First tracking point:" then "Next point (Press ENTER to end tracking):" until Enter, each point taken square from the one before along the axis it lies farther along, upright where it lies as far along both (a distance typed going along the axis nearest the cursor), and gives the last; .X, .Y, .Z, .XY, .XZ or .YZ asks "of" a point whose coordinates named are kept, then "(need YZ):" for the rest, a point whose coordinates asked are taken, or where one is asked a number alone. Coordinates are those of the Ucs, and Z, which a plan has none of, is asked as AutoCAD asks it and left out. A modifier typed at a modifier's prompt nests in it, as FROM with M2P for its base point, and each point may be snapped; AutoCAD 2021 takes TT and TK only at the command's own prompt or inside M2P, inside TT and TK only M2P, and M2P not inside M2P; one it does not take is text that is no point, refused as that is, as the window's menu says it too. What is no point AutoCAD's way too: Enter or text at TT's or a filter's prompt, and Enter at FROM's, is answered by the prompt they were typed at, as text and never as a modifier; FROM and M2P ask again for text, M2P for Enter too; TK says "Invalid 2D point.", at its first prompt going back to the prompt it was typed at. A leading underscore is allowed, as the menu sends "_from". At "Select objects:", at a prompt for one object, and at the corner of a window or the point of a fence, AutoCAD 2021 takes them all the same: the point a modifier gives there picks as a click does, "Select objects: _from", "Base point: 0,-10", "<Offset>: @50,10" then "1 found", or, lying on no object, is the first corner of the window, "Specify opposite corner:"; TT gives nothing and "Select objects:" is asked again; text no modifier takes is refused as that prompt refuses it, "Invalid selection" and the options listed. A line of 100,50 FROM with the offset @30,20 starts at (130, 70); M2P between (0, 0) and (100, 40) gives (50, 20); TK from (100, 0) to (130, 50) gives (100, 50); .X of (30, 999) with (888, 40) at "(need YZ):" gives (30, 40), and with 40,3 gives (30, 3).

public bool StartPointModifier(string typed)

Parameters

typed string

The modifier: FROM, M2P, TT, TK, .XY.

Returns

bool

Whether it was started: false where it is none of these, no prompt waits for a point or objects, or it does not nest in the modifier asking.