整理代码

This commit is contained in:
ShrlAlgo
2025-10-10 11:19:58 +08:00
parent 4722a4c881
commit 9d40762f03
111 changed files with 3238 additions and 3112 deletions

View File

@@ -1,4 +1,6 @@
using Autodesk.Revit.Attributes;
using System.Windows;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using eTransmitForRevitDB;
using Nice3point.Revit.Toolkit.External;
@@ -19,7 +21,11 @@ public class PureModelCmd : ExternalCommand
System.Windows.MessageBox.Show("请先保存文件");
return;
}
var result = MessageBox.Show("是否清理项目中的所有未使用项", "询问", MessageBoxButton.YesNo, MessageBoxImage.Question);
if(result == MessageBoxResult.No)
{
return;
}
var options = new SaveAsOptions()
{
Compact = true,
@@ -34,7 +40,6 @@ public class PureModelCmd : ExternalCommand
}
catch (Exception)
{
throw;
}