sieben 发表于 2015-12-17 08:38
protected override SamplerStatus Sampler(JigPrompts prompts)
利用 JigPrompts prompts
具体是怎么用呢,我用下面这段代码,怎么直接就出现默认结果了
- JigPromptStringOptions pion = new JigPromptStringOptions("\n请选择操作的功能 ");
- pion.Keywords.Add("改方向","S","改方向(S)");
- pion.Keywords.Add("改大小", "B", "改大小(B)");
- pion.Keywords.Default = "改方向";
- PromptResult ss = prompts.AcquireString(pion);
- if (ss.Status == PromptStatus.Keyword)
- {
- Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("结果是:" + ss.StringResult);
- }
- return SamplerStatus.NoChange;
|