|
@@ -42,6 +42,7 @@ namespace ExportStart
|
|
|
path = @"E:\导出测试\testSpace.rvt";
|
|
|
path = @"E:\导出测试\系统图修改编码版\给排水系统图模型第一版V1129.rvt";
|
|
|
path = @"C:\Users\SAGACLOUD\Desktop\新建文件夹\b1-2172005.rvt";
|
|
|
+ path = @"C:\Users\SAGACLOUD\Desktop\a1.json";
|
|
|
JObject jObject = new JObject();
|
|
|
jObject.Add("ResultFileName", @"C:\Users\SAGACLOUD\AppData\Local\RevitService\Result_e26be2fd-2097-462b-bdd0-a2a86b616928.txt");
|
|
|
param = jObject.ToString();
|
|
@@ -55,6 +56,7 @@ namespace ExportStart
|
|
|
{
|
|
|
Log4Net.Debug("命令参数错误");
|
|
|
}
|
|
|
+ File.AppendAllText(@"D:\log.txt", path + "\r\n");
|
|
|
Log4Net.Info(command);
|
|
|
Log4Net.Info(path);
|
|
|
if (File.Exists(path) && Enum.TryParse(command, out CommandType commandType))
|
|
@@ -97,7 +99,11 @@ namespace ExportStart
|
|
|
/// <returns></returns>
|
|
|
private static void SaveResult(string param, string result)
|
|
|
{
|
|
|
+ File.AppendAllText(@"D:\log.txt", param+"\r\n");
|
|
|
+ File.AppendAllText(@"D:\log.txt", result + "\r\n");
|
|
|
Console.WriteLine(param);
|
|
|
+ Log4Net.Debug(param);
|
|
|
+ Log4Net.Debug(result);
|
|
|
try
|
|
|
{
|
|
|
|