public void edcmd2()
        {
            var editor = Application.DocumentManager.MdiActiveDocument.Editor;
            var res    = editor.GetPoint("\n请输入第一个点");

            if (res.Status == PromptStatus.OK)
            {
                MyRectJig.Make(res.Value)?.ToSpace();
            }
        }
            public static Polyline Make(Point3d basePt)
            {
                var editor = Application.DocumentManager.MdiActiveDocument.Editor;
                var jig    = new MyRectJig(EntityHelper.CreateRect(
                                               basePt.X, basePt.Y, 0, 0), basePt);

                foreach (var step in Enumerable.Range(1, 2))
                {
                    jig.Step = step;
                    if (editor.Drag(jig).Status != PromptStatus.OK)
                    {
                        return(null);
                    }
                }

                return(jig.rect);
            }