多项功能优化

This commit is contained in:
GG Z
2024-12-22 10:26:12 +08:00
parent 77655c9ef5
commit 83b846f15f
66 changed files with 5424 additions and 2927 deletions

View File

@@ -2,8 +2,6 @@
using Nice3point.Revit.Toolkit.External;
using UIFramework;
namespace Sai.RvKits.RvView;
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
@@ -13,6 +11,8 @@ public class SwitchBackgroundCmd : ExternalCommand
public override void Execute()
{
var col = Application.BackgroundColor;
Application.BackgroundColor = col.Red == 255 && col.Green == 255 && col.Blue == 255 ? new Color(32, 40, 49) : new Color(255, 255, 255);
Application.BackgroundColor = col.Red == 255 && col.Green == 255 && col.Blue == 255
? new Color(32, 40, 49)
: new Color(255, 255, 255);
}
}