优化生成器事务调用,项目结构

This commit is contained in:
ShrlAlgo
2025-09-04 15:53:29 +08:00
parent b021bded67
commit 8251f80f0b
5 changed files with 25 additions and 41 deletions

View File

@@ -1,8 +1,4 @@
// RevitGen.Common/Attributes/RevitCommandAttribute.cs
using System;
using Autodesk.Revit.Attributes;
using System;
namespace RevitGen.Attributes
{
@@ -35,11 +31,6 @@ namespace RevitGen.Attributes
/// </summary>
public string ToolTip { get; set; } = "";
/// <summary>
/// 命令的事务模式。生成器将根据此模式自动处理事务。
/// </summary>
public TransactionMode TransactionMode { get; set; } = TransactionMode.Manual;
/// <summary>
/// 构造函数
/// </summary>
@@ -52,5 +43,7 @@ namespace RevitGen.Attributes
}
Text = text;
}
public bool UsingTransaction { get; set; }
}
}