Method RunCommand
RunCommand(string, params object[])
Runs a command to its end inside the run, as AutoLISP's command does: 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.
public void RunCommand(string name, params object[] answers)
Parameters
namestringThe name or alias of the command, as typed at the command line.
answersobject[]The answers, in order: a text is typed and an empty one is Enter; a whole or real number is typed; a GeoPoint2 is a point picked; a list of handles answers "Select objects:" and ends it.
Exceptions
- ArgumentNullException
Thrown when the name or the answers are null.
- ArgumentException
Thrown when an answer is of a kind the call does not take.
- CadRemoteException
Thrown with IsCancelled true when the user pressed Esc; with it false when the app has no such command, the command did not take an answer or asked for more after the last, or the run has ended.