예제 #1
0
        public void circle2()
        {
            Point3d point3d  = InteractionUtil.getPoint("请输入圆心:");
            double  distance = InteractionUtil.getDistance("请输入半径:");
            Circle  circle   = GoatCircleUtil.Circle(point3d, distance);

            circle.AddToModelSpace();
        }
예제 #2
0
        //点击“切入到 AutoCAD 拾取点”按钮窗体自动隐藏,程序焦点切换到 AutoCAD 主界面
        private void button1_Click(object sender, EventArgs e)
        {
            using (EditorUserInteraction edUsrInt = BaseData.ed.StartUserInteraction(this)){
                //交互过程
                Point3d pt = InteractionUtil.getPoint("选择点");
//                _textBox = textBox1;
//                _textBox.Text  = "(" + pt.X + "," + pt.Y + "," + pt.Z + ")";
                this.textBox1.Text = "(" + pt.X + "," + pt.Y + "," + pt.Z + ")";
                //交互结束
                edUsrInt.End();
                Focus();
            }
        }
예제 #3
0
        public void getPoint2()
        {
            Point3d pt = InteractionUtil.getPoint("\n 选择点对象", true);

            BaseData.ed.WriteMessage("\n 拾取的点坐标为:({0},{1},{2})", pt.X, pt.Y, pt.Z);
        }