///<summary> This gets called when when the user runs this command.</summary> public override IRhinoCommand.result RunCommand(IRhinoCommandContext context) { MArgsRhinoGetCircle args = new MArgsRhinoGetCircle(); OnCircle circle = new OnCircle(); IRhinoCommand.result rc = RhUtil.RhinoGetCircle(args, ref circle); if (rc != IRhinoCommand.result.success) { return(rc); } SampleCsDrawCircleConduit conduit = new SampleCsDrawCircleConduit(circle); conduit.Enable(); context.m_doc.Redraw(); MRhinoGetString gs = new MRhinoGetString(); gs.SetCommandPrompt("Press <Enter> to continue"); gs.AcceptNothing(); gs.GetString(); conduit.Disable(); context.m_doc.Redraw(); return(IRhinoCommand.result.success); }