/*------------------------------------------------------------------------- * 功能描述:RevitButton * 作者:xulisong * 创建时间: 2019/3/7 15:37:11 * 版本号:v1.0 * -------------------------------------------------------------------------*/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FWindSoft.Revit.Menu { public class RevitButton:RevitMenuComponment { /// /// 命令顺序 /// public int Index { get;internal set; } = 0; #region 描述属性 public string AssemblyName { get; set; } public string ClassName { get; set; } public string ImageName { get; set; } public string Description { get; set; } public string LongDescription { get; set; } public bool Visible { get; set; } /// /// 按钮类型 /// public RevitButtonStyle ButtonStyle { get; set; } public string GroupName { get; set; } public bool IsStack { get; set; } #endregion #region 关联属性 public string PanelName { get; set; } #endregion #region 相关方法 public RevitPanel GetPanel() { return Config.Panels.FirstOrDefault(t => t.Name == PanelName); } public RevitTab GetTab() { return GetPanel()?.GetTab(); } #endregion } }