1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
- using System;
- using System.Collections.Generic;
- using Autodesk.Revit.DB;
- using Newtonsoft.Json;
- using ServiceRevitLib.Mode;
- namespace ServiceRevitLib.DataCheck.Mode
- {
-
-
-
- public class CheckBase:ResultBase
- {
- public CheckBase()
- {
- Content=new List<ResultBase>();
- }
- private string m_Name;
-
-
-
- public string Name
- {
- get { return this.GetType().Name; }
- }
- public List<ResultBase> 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
- }
- }
|