日常更新
This commit is contained in:
@@ -10,7 +10,7 @@ using Autodesk.AutoCAD.EditorInput;
|
||||
using Autodesk.AutoCAD.Geometry;
|
||||
using Autodesk.AutoCAD.Runtime;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
//using Newtonsoft.Json;
|
||||
|
||||
namespace BoreholeTool
|
||||
{
|
||||
@@ -146,10 +146,12 @@ namespace BoreholeTool
|
||||
}
|
||||
|
||||
// 输出
|
||||
string json = JsonConvert.SerializeObject(finalLogs, Formatting.Indented);
|
||||
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "BoreholeHybrid.json");
|
||||
File.WriteAllText(path, json);
|
||||
ed.WriteMessage($"\n处理完成!共 {finalLogs.Count} 个钻孔。文件: {path}");
|
||||
#region Json
|
||||
//string json = JsonConvert.SerializeObject(finalLogs, Formatting.Indented);
|
||||
//string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "BoreholeHybrid.json");
|
||||
//File.WriteAllText(path, json);
|
||||
//ed.WriteMessage($"\n处理完成!共 {finalLogs.Count} 个钻孔。文件: {path}");
|
||||
#endregion
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user