㈠ 簡單的圓用三次元怎麼編程
新建IndexMole.cs類文件,讓IndexMole繼承NancyMole,
在IndexMole的構造函數里編寫路由規則及HTTP處理,IndexMole如下:
   public class IndexMole:NancyMole
    {
        public IndexMole()
        {
            Get["/"] =_=> "Hello World";
            
            Get["/GetPerson/{id:int}"] = parameters =>
            {
                Person p = new Person();
                p.ID = parameters.ID;
                p.Name = "loogn";
                return Response.AsJson(p);
            };
        }
    }
    public class Person
    {
        public int ID { get; set; }
        public string Name { get; set; }
    }
㈡ 三次元怎麼跑編程
編程簡略步驟: 
 
1,分析圖紙,給圖紙尺寸及形位公差編號,准備並清潔工件與夾具。  
2,選用合適的探針或根據需要組裝新的探針(Stylus System)並校準測針。  
3,根據基準建立基本坐標系(Base Alignment)(若主坐標系過於復雜,可考慮建立初定位坐標系Start Alignment)。  
4,建立安全平面(Clearance Plane)。  
5,按照編號順序提取元素(Features)及構建(Construction)—輸出特性Size & 
Form and Location--修改名義值(Nominal),修改公差(Tolerance),修改名稱(Name),根據需要在評定(Evaluation)—勾選濾波(Filter)與去除粗大誤差(Outlier elimination)。  
6,修改策略(Strategy)(一,單點變軌跡,根據需要給平面加多義線(polyline),
網格(grid),給圓加自動圓軌跡(Circle auto path),給圓柱加兩圓(2 Circle auto path)或者螺旋線軌跡(Helix)。二,修改速度(Speed),修改點數
(Number of points),修改起始角度(Start angle),角度范圍(Angle range),修改截面高度(Height)。  
7,檢查五項參數:程序元素編輯(Measurement Plan Editor Features)  安全平面組(Clearance Group)[1-1], 安全距離(Clearance Distance)[1-2] 回退距離(Retract Distance)[1-3] 探針(Stylus System)[3-1] 測針(Stylus)[3-2]  
8,運行程序,第一次慢速運行,工件完全沒有移動過可選擇當前坐標系
(Current alignment),工件僅輕微移動過可自動運行基本坐標系,工件移動量偏大則需選擇手動運行坐標系(Manual alignment)。