void RunSystemCommand(string cmdid) { if (cmdid == "NEW") { CmdNewDrawing("NONAME"); } else if (cmdid == "SAVE") { InputPoint ip = new InputPoint(null, null); ip.Run(); } else if (cmdid == "LINE") { CommandLine.Run(); } else if (cmdid == "ARC") { CommandArc.Run(); } else if (cmdid == "TEST") { CommandTest.Run(); } else { Dialogs.Message("Error", "Unknown command: " + cmdid); } // hypot: }
public static Point2d GetPoint(string prompt, Point2d basept = null) { using (new Prompt(prompt)) { InputPoint inpt = new InputPoint(basept, null); inpt.Run(); return(inpt.SelectedPoint); } }