- [CommandMethod("TTTT", CommandFlags.Redraw)]
- public static void Test()
- {
- var ed = SystemManager.Editor;
- var opts = new PromptSelectionOptions();
- opts.SingleOnly = true;
- double angle = 9.0 / 180 * Math.PI;
- double angle2 = 11.0 / 180 * Math.PI;
- var rlst =
- new ResultList
- {
- {0, "Text"},
- {1, "~*2*"},
- {-4, ">"},
- {50, angle},
- {-4, "<"},
- {50, angle2}
- };
- var res = ed.GetSelection(opts, rlst);
- if (res.Status == PromptStatus.OK)
- ed.SetImpliedSelection(res.Value.GetObjectIds());
- }
|