1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*-------------------------------------------------------------------------
- * 功能描述: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
- {
- /// <summary>
- /// 命令顺序
- /// </summary>
- 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; }
- /// <summary>
- /// 按钮类型
- /// </summary>
- 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
- }
- }
|