From 8a8d25f75ddc279a343f9968c76f73aad19280d6 Mon Sep 17 00:00:00 2001 From: zjsy521 <116447324@qq.com> Date: Wed, 4 Aug 2021 15:14:15 +0000 Subject: [PATCH] =?UTF-8?q?update=2004=5F=E7=94=A8=E6=88=B7=E4=BA=A4?= =?UTF-8?q?=E4=BA=92/04=5F=E7=94=A8=E6=88=B7=E4=BA=A4=E4=BA=92/Class1.cs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Class1.cs" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 06e421a..eaa6ca2 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; -- Gitee