求助keyword问题
-
- PromptPointOptions ppo=new PromptPointOptions("选择需要标注点");
- ppo.Keywords.Add("S_位数");
- ppo.Keywords.Add("H_字高");
- ppo.AllowNone = false;
- PromptPointResult po;
- looppoint:
- po=ed.GetPoint(ppo);
- if (po.Status == PromptStatus.Keyword)
- {
- switch (po.StringResult)
- {
- case "字高":
- Program.hight = ed.GetDouble("输入字高<" + Program.hight.ToString() + ">").Value;
- break;
- case "位数":
- Program.pointxiaoshu = ed.GetInteger("保留小数位数<" + Program.pointxiaoshu.ToString() + ">").Value;
- break;
- }
- goto looppoint;
- }
- else
- {
- basepoint = new Point3d(Math.Round( po.Value.X,Program.pointxiaoshu),Math.Round( po.Value.Y,Program.pointxiaoshu),Math.Round( po.Value.Z,Program.pointxiaoshu));
- }
为什么我调试的时候输入关键字“H”后没有反应?输入“S”能正常运行。
该贴已经同步到 xkaeli的微博 |