/* ============================================================================== * 功能描述:CheckBase * 创 建 者:Garrett * 创建日期:2019/6/11 16:01:26 * ==============================================================================*/ using System; using System.Collections.Generic; using Autodesk.Revit.DB; using Newtonsoft.Json; using ServiceRevitLib.Mode; namespace ServiceRevitLib.DataCheck.Mode { /// /// CheckBase /// public class CheckBase:ResultBase { public CheckBase() { Content=new List(); } private string m_Name; /// /// 检查项名称 /// public string Name { get { return this.GetType().Name; } } public List Content { get; set; } /// /// 关联表的名称 /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string ReferenceSheet { get; set; } #region Method protected Document m_Doc { get; set; } public void SetDoc(Document doc) { m_Doc = doc; } public virtual void Check() { if(m_Doc==null)throw new NullReferenceException(); Console.WriteLine(this.Name + "Checked"); } #endregion } }