diff --git "a/04_\347\224\250\346\210\267\344\272\244\344\272\222/04_\347\224\250\346\210\267\344\272\244\344\272\222/Class1.cs" "b/04_\347\224\250\346\210\267\344\272\244\344\272\222/04_\347\224\250\346\210\267\344\272\244\344\272\222/Class1.cs" index 06e421ac56b7fc7586f57d630bc889e2b7408524..eaa6ca24b9b51a5c56f6a2c3bcfc83e3e5786890 100644 --- "a/04_\347\224\250\346\210\267\344\272\244\344\272\222/04_\347\224\250\346\210\267\344\272\244\344\272\222/Class1.cs" +++ "b/04_\347\224\250\346\210\267\344\272\244\344\272\222/04_\347\224\250\346\210\267\344\272\244\344\272\222/Class1.cs" @@ -1,4 +1,4 @@ -using Autodesk.AutoCAD.ApplicationServices; +using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.Geometry; using Autodesk.AutoCAD.Runtime; @@ -90,7 +90,7 @@ namespace _04_用户交互 while(isC) { - if (lineList.Count == 2) + if (lineList.Count >= 2) { ppr = ed.GetPoint("\n 指定一下点或 [闭合(C)/放弃(U)]:", pointPre, new string[] { "C","U" }); } @@ -98,7 +98,7 @@ namespace _04_用户交互 { ppr = ed.GetPoint("\n 指定下一点或[放弃(U)]", pointPre, new string[] { "U" }); } - ppr = ed.GetPoint("\n 指定下一点或 [放弃(U)]", pointPre, new string[] { "U" }); + Point3d pointNext; // 用于接收下一点坐标 if (ppr.Status == PromptStatus.Cancel) return; if (ppr.Status == PromptStatus.None) return;