Class CadRemoteRun
A run of a tool's command, as the tool sees it: the command the user typed in the app, which the app holds open (its command line says "<name> is working... (Esc to stop)") while the tool works. Everything the tool does on the connection that joined the run (JoinRun(int)) is part of the command: its questions are asked on the command line, its commits are one undo step, and Esc ends it with every change taken back.
public sealed class CadRemoteRun
- Inheritance
-
CadRemoteRun
- Inherited Members
Remarks
Once the run has ended, in the app by Esc or by End() or Fail(string), the app refuses every request of it with a CadRemoteException, IsCancelled true for Esc.
Fields
- Pause
The answer of RunCommand(string, params object[]) that leaves one prompt of the command to the user: one backslash, as AutoLISP's
pauseis.
Properties
- Id
Gets the number of the run, as the app gave it.
Methods
- Ask(CadAskKind, string, GeoPoint3?, IReadOnlyList<string>, string)
Asks the user and waits for the answer. The prompt appears on the command line of the drawing the run works in, the user answers it as any command's: clicking on the canvas, typing a point or a number, a keyword by its capital letters, or Enter. The app stays free meanwhile, for the user and for every other client.
- End()
Ends the run well: the changes it committed stay, as one undo step named after the command. The connection leaves the run.
- Fail(string)
Ends the run that failed: the changes it committed are taken back, and the line is written on the command line. The connection leaves the run.
- RunCommand(string, params object[])
Runs a command to its end inside the run, as AutoLISP's
commanddoes: it asks its prompts on the command line, each answered in turn by the answers given, its changes join the one undo step of the run, and nothing is written about the run being resumed. Pause leaves a prompt to the user, and the call waits for them; Esc then ends the run. A command that is still asking after the last answer is ended, and the call fails.
- Write(string)
Writes a line on the command line of the drawing the run works in, as a command's own messages are written.