In a command, i want to set some statements in my code to true or false, for example to activate a debug mode.
I cant really find how i can ask for user input during a command.
I have the code as shown below, but i am not sure how to continue from here. Could anyone push me into the right direction? thank you.
[CommandMethod("AskUserTrueFalse")]
public void AskUserTrueFalse()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
//add promptoptions and add a true/false option
PromptSelectionOptions promptOptions = new PromptSelectionOptions();
promptOptions.Keywords.Add("True");
promptOptions.Keywords.Add("False");
string keywords = promptOptions.Keywords.GetDisplayString(true);
promptOptions.MessageForAdding = "adding" + keywords;
promptOptions.MessageForRemoval = "removing" + keywords;
}