UG二次开发 创建临时圆弧(C#)
1 public void CreatDisplayTemArc(double[] mtx, double[] cenPoint, double r) 2 { 3 UFSession theUfSession = UFSession.GetUFSession(); 4 UFObj.DispProps attrib = new UFObj.DispProps(); 5 attrib.layer = 1; 6 attrib.highlight_status = true; 7 attrib.line_width = 0; 8 attrib.color = 6; 9 attrib.blank_status = 0; 10 attrib.font = 1; 11 theUfSession.Disp.DisplayTemporaryArc(Tag.Null, UFDisp.ViewType.UseActivePlus, mtx, 0.0, Math.PI * 2.0, cenPoint, r, ref attrib); 12 }